ci: set pipefail
Some checks failed
Flake checks / Check (pull_request) Failing after 4m27s

This commit is contained in:
teutat3s 2024-05-14 23:22:09 +02:00
parent 091256b67a
commit 0458c346bc
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -52,6 +52,7 @@ jobs:
- name: Run flake checks
run: |
set -exuo pipefail
# Prevent cache garbage collection by creating GC roots
for target in $(nix flake show --json --all-systems | jq '
.["nixosConfigurations"] |
@ -60,7 +61,7 @@ jobs:
' | tr -d '"'
); do
nix --print-build-logs --verbose --accept-flake-config --access-tokens '' \
build --out-link ./result-$target ".#nixosConfigurations.${target}.config.system.build.toplevel"
build --out-link ./result-"$target" ".#nixosConfigurations.${target}.config.system.build.toplevel"
done
nix --print-build-logs --verbose --accept-flake-config --access-tokens '' flake check