ci: run nix jobs with --fallback

cache.nixos.org intermittently serves corrupt NARs; build from source on
substitute failure instead of failing the job.
This commit is contained in:
Kristoffer Dalby
2026-06-18 14:41:38 +00:00
parent f5198841bd
commit a00de89c85
8 changed files with 15 additions and 15 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ jobs:
if: steps.changed-files.outputs.files == 'true'
run: |
# Build all Go binaries in one nix shell to maximize cache reuse
nix develop --command -- bash -c '
nix develop --fallback --command -- bash -c '
go build -o hi ./cmd/hi
CGO_ENABLED=0 GOOS=linux go build -o headscale ./cmd/headscale
# Build integration test binary to warm the cache with all dependencies
@@ -182,7 +182,7 @@ jobs:
- name: List Tailscale versions to pre-pull
id: versions
run: |
versions=$(nix develop --command go run ./cmd/hi list-versions --set=must --exclude=head)
versions=$(nix develop --fallback --command go run ./cmd/hi list-versions --set=must --exclude=head)
echo "versions=${versions}" >> "$GITHUB_OUTPUT"
echo "Pre-pulling: ${versions}"
- name: Pull Tailscale images