chore: ensure that ci fails when matrix construction errors

This commit is contained in:
Phillip Cloud 2023-10-28 07:37:10 -04:00
parent d1e04ed33b
commit 53473ab549
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -19,8 +19,10 @@ jobs:
- id: set-matrix
name: Generate Nix Matrix
run: |
set -Eeu
echo "matrix=$(nix eval --json '.#githubActions.matrix')" >> "$GITHUB_OUTPUT"
set -euo pipefail
matrix="$(nix eval --json '.#githubActions.matrix')"
echo "matrix=${matrix}" >> "$GITHUB_OUTPUT"
nix-build:
needs: nix-matrix