From 01019e307c6677cf68c26a46f974562eb37d0f54 Mon Sep 17 00:00:00 2001 From: cat Date: Thu, 19 Feb 2026 18:35:36 +0300 Subject: [PATCH] qwq --- .forgejo/workflows/test.yml | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index b0e6d9d..48bbc73 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -1,4 +1,4 @@ -name: compile jq +name: qwq on: push: @@ -6,38 +6,15 @@ on: - main jobs: - compile-jq: + qwq: runs-on: archlinux-latest container: image: archlinux:latest steps: - - name: install packages and prepare source + - name: qwq run: | - pacman -Sy --noconfirm wget base-devel autoconf automake bison flex python - wget https://github.com/jqlang/jq/releases/download/jq-1.8.1/jq-1.8.1.tar.gz - tar -xf jq-1.8.1.tar.gz - - - name: compile jq - run: | - cd jq-1.8.1 - ./configure --prefix=/usr - make -j$(nproc) - make prefix=/usr install - - - - name: run jq - run: | - echo '[ - {"first": "first ok"}, - {"second": "second ok"}, - {"third": "third ok"}, - {"fourth": "fourth ok"}, - {"fifth": "fifth ok"} - ]' > test.json - echo "all" - jq '.[].first // .[].second // .[].third // .[].fourth // .[].fifth' test.json - echo "only object third" - jq '.[] | select(has("third"))' test.json - echo "only fourth" - jq '.[3].fourth' test.json \ No newline at end of file + lsblk + df -h + whoami + uname -a \ No newline at end of file