ci: Fix per-job build
Some checks failed
CI / Check, build and cache Nix flake (push) Has been cancelled

This commit is contained in:
Jack O'Sullivan 2024-11-26 21:33:54 +00:00
parent d8ca87bfd8
commit 49f8276ab7

View File

@ -33,6 +33,7 @@ jobs:
run: | run: |
nix eval --json --apply "builtins.attrNames" .#ci.x86_64-linux | jq -cr '.[]' | while read job; do nix eval --json --apply "builtins.attrNames" .#ci.x86_64-linux | jq -cr '.[]' | while read job; do
echo "Building $job" echo "Building $job"
nix build --no-link .#ci.x86_64-linux."$job" --json
path="$(nix build --no-link .#ci.x86_64-linux."$job" --json | jq -r .[0].outputs.out)" path="$(nix build --no-link .#ci.x86_64-linux."$job" --json | jq -r .[0].outputs.out)"
echo "Caching $job" echo "Caching $job"
ci/push-to-cache.sh "$path" ci/push-to-cache.sh "$path"