Sequence windows after build to avoid shared action-cache race
Build and Test / build (push) Successful in 22s
Build and Test / windows (push) Successful in 27s
Release / release (push) Successful in 1m45s

Run 136's build job failed immediately (not a segfault) because it
and windows both clone actions/checkout@v4 and actions/cache@v4 into
the same cache directory on the runner at the same time; one job's
git fetch loses the race and ends up with a missing dist/index.js.
needs: build serializes them so they don't race on that shared cache.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
SansanandClaude Sonnet 5 committed 2026-10-03 19:43:30 +02:00
1 parent f53ec2d71d
commit f39ed1684b
1 file changed
+7 -1
+7 -1
View File
@@ -33,8 +33,14 @@ jobs:
- name: Build
run: just release
# Cross-compiles for Windows so link breakages show up before a release
# Cross-compiles for Windows so link breakages show up before a release.
# Runs after `build`: both jobs clone the same cached actions/checkout and
# actions/cache repos into one shared directory on the runner, and starting
# them at the same time can race on that clone/fetch - one job then gets a
# missing or corrupted action and fails immediately (seen on run 136, not
# related to the odin test fix above). Sequencing avoids the race.
windows:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository