Skip to content

Commit 5bd6edf

Browse files
committed
fix(ci): require WASM cache for Windows SEA builds
Windows builds cannot reliably download ML models from Hugging Face due to network issues. Fail fast with clear error message directing users to run build-wasm.yml workflow first to prime the cache. This prevents 30-60 minute build failures and makes the dependency explicit.
1 parent ffe024a commit 5bd6edf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-sea.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ jobs:
203203
key: node-sea-${{ matrix.platform }}-${{ matrix.arch }}-${{ steps.sea-cache-key.outputs.hash }}
204204
restore-keys: node-sea-${{ matrix.platform }}-${{ matrix.arch }}-
205205

206+
- name: Check WASM cache requirements (Windows)
207+
if: matrix.os == 'windows' && (steps.yoga-cache.outputs.cache-hit != 'true' || steps.ai-cache.outputs.cache-hit != 'true' || steps.onnx-cache.outputs.cache-hit != 'true')
208+
run: |
209+
echo "::error::WASM assets not cached for Windows build. Run build-wasm.yml workflow first to prime the cache."
210+
echo "Windows builds require pre-cached WASM assets due to network reliability issues."
211+
exit 1
212+
206213
- name: Build CLI (required for SEA)
207214
if: steps.sea-cache.outputs.cache-hit != 'true' || inputs.force
208215
run: pnpm --filter @socketsecurity/cli run build

0 commit comments

Comments
 (0)