From dbf093ed49b75a0ce6ca9fcd1753286595bb05a4 Mon Sep 17 00:00:00 2001 From: 4ever2 <3417013+4ever2@users.noreply.github.com> Date: Thu, 16 Jan 2025 22:57:11 +0100 Subject: [PATCH] debug --- .github/workflows/nix-action-8.19.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nix-action-8.19.yml b/.github/workflows/nix-action-8.19.yml index 0dfda838..4612b0d4 100644 --- a/.github/workflows/nix-action-8.19.yml +++ b/.github/workflows/nix-action-8.19.yml @@ -40,12 +40,19 @@ jobs: authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} extraPullNames: coq, coq-community, metacoq name: au-cobra + - id: stepGetDerivation + name: Getting derivation for current job (ConCert) + run: "NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr bundle + \"8.19\" --argstr job \"ConCert\" \\\n --dry-run 2> err > out || (touch + fail; true)\n" + - name: Error reporting + run: "echo \"out=\"; cat out\necho \"err=\"; cat err\n" + - name: Failure check + run: if [ -e fail ]; then exit 1; else exit 0; fi; - id: stepCheck - name: Checking presence of CI target ConCert - run: "nb_dry_run=$(NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link \\\n --argstr - bundle \"8.19\" --argstr job \"ConCert\" \\\n --dry-run 2>&1 > /dev/null)\n - echo $nb_dry_run\necho status=$(echo $nb_dry_run | grep \"built:\" | sed \"\ - s/.*/built/\") >> $GITHUB_OUTPUT\n" + name: Checking presence of CI target for current job + run: "(echo -n status=; cat out | grep \\\"built:\\\" | sed \\\"s/.*/built/\\\ + \") >> $GITHUB_OUTPUT\n" - if: steps.stepCheck.outputs.status == 'built' name: 'Building/fetching previous CI target: coq' run: NIXPKGS_ALLOW_UNFREE=1 nix-build --no-out-link --argstr bundle "8.19" --argstr