diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yaml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4c03f04..c852112 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,9 +31,13 @@ jobs: - name: Evaluate jobs id: eval run: | - nix shell --inputs-from . \ + set -euo pipefail + + matrix=$(nix shell --inputs-from . \ nixpkgs#{bash,coreutils,jq,nix-eval-jobs} \ - --command bash ./.github/eval-flake.sh + --command ./.github/eval-flake.sh) + + echo "matrix=$matrix" >> "$GITHUB_OUTPUT" build: needs: eval @@ -47,6 +51,7 @@ jobs: steps: - uses: actions/checkout@v4 + if: ${{ !matrix.isCached }} - name: Install Nix if: ${{ !matrix.isCached }} @@ -91,10 +96,11 @@ jobs: - name: Run check run: | nix flake check \ + --accept-flake-config \ --print-build-logs \ --fallback \ --show-trace \ - --option allow-import-from-derivation true + --allow-import-from-derivation gate: needs: [build, check] |
