Skip to content

Commit 81b876a

Browse files
committed
fix(ci): enable cross-OS cache sharing for Windows builds
Add enableCrossOsArchive: true to all WASM cache actions to allow Windows runners to access caches created on Linux runners. Root cause: - build-wasm.yml runs on ubuntu-latest (Linux) - Creates caches using Linux-specific compression - build-sea.yml Linux/macOS jobs could access these caches - build-sea.yml Windows jobs could NOT access Linux caches (OS-specific by default) GitHub Actions caches are OS-specific unless explicitly configured for cross-platform sharing. Windows requires enableCrossOsArchive: true to access caches created on Linux/macOS runners. Changes: - build-wasm.yml: Add enableCrossOsArchive to Yoga, AI, ONNX caches - build-sea.yml: Add enableCrossOsArchive to all three cache/restore actions This allows Windows SEA builds to use WASM assets cached by Linux runners, eliminating the cache miss errors that were causing Windows builds to fail. References: - https://github.com/actions/cache#cross-os-cache - https://github.com/orgs/community/discussions/27059
1 parent f7624d9 commit 81b876a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build-sea.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ jobs:
101101
path: packages/yoga-layout/build/wasm
102102
key: yoga-wasm-${{ steps.wasm-cache-keys.outputs.yoga-hash }}
103103
restore-keys: yoga-wasm-
104+
enableCrossOsArchive: true
104105

105106
- name: Restore AI models cache
106107
id: ai-cache
@@ -109,6 +110,7 @@ jobs:
109110
path: packages/socketbin-cli-ai/dist
110111
key: ai-models-${{ steps.wasm-cache-keys.outputs.ai-hash }}
111112
restore-keys: ai-models-
113+
enableCrossOsArchive: true
112114

113115
- name: Restore ONNX Runtime cache
114116
id: onnx-cache
@@ -117,6 +119,7 @@ jobs:
117119
path: packages/onnx-runtime-builder/dist
118120
key: onnx-runtime-${{ steps.wasm-cache-keys.outputs.onnx-hash }}
119121
restore-keys: onnx-runtime-
122+
enableCrossOsArchive: true
120123

121124
- name: Verify Yoga Layout cache
122125
id: yoga-cache-valid

.github/workflows/build-wasm.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
path: packages/yoga-layout/build/wasm
6262
key: yoga-wasm-${{ steps.yoga-cache-key.outputs.hash }}
6363
restore-keys: yoga-wasm-
64+
enableCrossOsArchive: true
6465

6566
- name: Restore yoga build cache
6667
id: yoga-build-cache
@@ -177,6 +178,7 @@ jobs:
177178
path: packages/socketbin-cli-ai/dist
178179
key: ai-models-${{ steps.ai-cache-key.outputs.hash }}
179180
restore-keys: ai-models-
181+
enableCrossOsArchive: true
180182

181183
- name: Verify cached artifacts
182184
id: ai-cache-valid
@@ -259,6 +261,7 @@ jobs:
259261
path: packages/onnx-runtime-builder/dist
260262
key: onnx-runtime-${{ steps.onnx-cache-key.outputs.hash }}
261263
restore-keys: onnx-runtime-
264+
enableCrossOsArchive: true
262265

263266
- name: Restore ONNX Runtime build cache
264267
id: onnx-build-cache

0 commit comments

Comments
 (0)