diff options
| author | seth <[email protected]> | 2023-12-29 00:51:14 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-29 03:19:10 -0500 |
| commit | 4c86caefc587fafd7050b1407be7508a01622b6d (patch) | |
| tree | a3de67d27f585ded673053b3588b1a4d02614bb3 /.github/workflows | |
| parent | ab3ea6d89795f0413b0e7a4b5c65bff989f7f284 (diff) | |
ci: cleanup eval-flake.sh
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] |
