ci: stringify builds to JSON

This commit is contained in:
Matt Sturgeon 2025-05-25 23:30:14 +01:00
parent 032237634b
commit b147e6a6af
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -27,7 +27,10 @@ jobs:
id: set-matrix
run: |
set -Eeu
matrix="$(nix eval --json .#githubActions.matrix)"
matrix=$(
nix eval --json .#githubActions.matrix \
--apply 'map (m: m // { builds = builtins.toJSON m.builds; })'
)
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
build:
@ -40,4 +43,4 @@ jobs:
secrets: inherit
with:
name: ${{ matrix.name }}
builds: ${{ toJSON(matrix.builds) }}
builds: ${{ matrix.builds }}