@@ -175,8 +175,8 @@ jobs:
175175 AI_HASH=$(find packages/socketbin-cli-ai -type f \( -name "*.mjs" -o -name "*.ts" \) | sort | xargs sha256sum | sha256sum | cut -d' ' -f1)
176176 echo "ai-hash=$AI_HASH" >> $GITHUB_OUTPUT
177177
178- ONNX_HASH=$(find packages/onnxruntime -type f \( -name "*.mjs" -o -name "*.patch" \) | sort | xargs sha256sum | sha256sum | cut -d' ' -f1)
179- echo "onnx-hash=$ONNX_HASH" >> $GITHUB_OUTPUT
178+ # ONNX_HASH=$(find packages/onnxruntime -type f \( -name "*.mjs" -o -name "*.patch" \) | sort | xargs sha256sum | sha256sum | cut -d' ' -f1)
179+ # echo "onnx-hash=$ONNX_HASH" >> $GITHUB_OUTPUT
180180
181181 - name : Restore Yoga Layout WASM cache
182182 id : yoga-cache
@@ -196,14 +196,14 @@ jobs:
196196 restore-keys : ai-models-
197197 enableCrossOsArchive : true
198198
199- - name : Restore ONNX Runtime cache
200- id : onnx-cache
201- uses : actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
202- with :
203- path : packages/onnxruntime/dist
204- key : onnx-runtime-${{ steps.wasm-cache-keys.outputs.onnx-hash }}
205- restore-keys : onnx-runtime-
206- enableCrossOsArchive : true
199+ # - name: Restore ONNX Runtime cache
200+ # id: onnx-cache
201+ # uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
202+ # with:
203+ # path: packages/onnxruntime/dist
204+ # key: onnx-runtime-${{ steps.wasm-cache-keys.outputs.onnx-hash }}
205+ # restore-keys: onnx-runtime-
206+ # enableCrossOsArchive: true
207207
208208 - name : Verify Yoga Layout cache
209209 id : yoga-cache-valid
@@ -237,33 +237,33 @@ jobs:
237237 echo "✗ AI models cache invalid or missing"
238238 fi
239239
240- - name : Verify ONNX Runtime cache
241- id : onnx-cache-valid
242- shell : bash
243- run : |
244- if [ -f "packages/onnxruntime/dist/onnxruntime-web.wasm" ]; then
245- echo "valid=true" >> $GITHUB_OUTPUT
246- echo "✓ ONNX Runtime cache valid"
247- else
248- echo "valid=false" >> $GITHUB_OUTPUT
249- echo "✗ ONNX Runtime cache invalid or missing"
250- fi
240+ # - name: Verify ONNX Runtime cache
241+ # id: onnx-cache-valid
242+ # shell: bash
243+ # run: |
244+ # if [ -f "packages/onnxruntime/dist/onnxruntime-web.wasm" ]; then
245+ # echo "valid=true" >> $GITHUB_OUTPUT
246+ # echo "✓ ONNX Runtime cache valid"
247+ # else
248+ # echo "valid=false" >> $GITHUB_OUTPUT
249+ # echo "✗ ONNX Runtime cache invalid or missing"
250+ # fi
251251
252252 - name : Check WASM cache requirements (Windows)
253- if : matrix.os == 'windows' && (steps.yoga-cache-valid.outputs.valid != 'true' || steps.ai-cache-valid.outputs.valid != 'true' || steps.onnx-cache-valid.outputs.valid != 'true' )
253+ if : matrix.os == 'windows' && (steps.yoga-cache-valid.outputs.valid != 'true' || steps.ai-cache-valid.outputs.valid != 'true')
254254 run : |
255255 echo "::error::WASM assets not cached for Windows build. Run build-wasm.yml workflow first to prime the cache."
256256 echo "Windows builds require pre-cached WASM assets due to network reliability issues."
257257 exit 1
258258
259259 - name : Setup Python for WASM builds
260- if : steps.yoga-cache-valid.outputs.valid != 'true' || steps.ai-cache-valid.outputs.valid != 'true' || steps.onnx-cache-valid.outputs.valid != 'true'
260+ if : steps.yoga-cache-valid.outputs.valid != 'true' || steps.ai-cache-valid.outputs.valid != 'true'
261261 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
262262 with :
263263 python-version : ' 3.11'
264264
265265 - name : Build WASM assets on cache miss
266- if : steps.yoga-cache-valid.outputs.valid != 'true' || steps.ai-cache-valid.outputs.valid != 'true' || steps.onnx-cache-valid.outputs.valid != 'true'
266+ if : steps.yoga-cache-valid.outputs.valid != 'true' || steps.ai-cache-valid.outputs.valid != 'true'
267267 shell : bash
268268 run : |
269269 echo "⚠️ WASM cache miss detected - building from source"
@@ -272,11 +272,11 @@ jobs:
272272 echo "Cache status:"
273273 echo " Yoga Layout: ${{ steps.yoga-cache-valid.outputs.valid == 'true' && '✓ cached' || '✗ missing' }}"
274274 echo " AI Models: ${{ steps.ai-cache-valid.outputs.valid == 'true' && '✓ cached' || '✗ missing' }}"
275- echo " ONNX Runtime: ${{ steps.onnx-cache-valid.outputs.valid == 'true' && '✓ cached' || '✗ missing' }}"
275+ # echo " ONNX Runtime: ${{ steps.onnx-cache-valid.outputs.valid == 'true' && '✓ cached' || '✗ missing' }}"
276276 echo ""
277277
278- # Install Emscripten if needed for Yoga/ONNX .
279- if [ "${{ steps.yoga-cache-valid.outputs.valid }}" != "true" ] || [ "${{ steps.onnx-cache-valid.outputs.valid }}" != "true" ] ; then
278+ # Install Emscripten if needed for Yoga.
279+ if [ "${{ steps.yoga-cache-valid.outputs.valid }}" != "true" ]; then
280280 echo "::group::Installing Emscripten"
281281 git clone https://github.com/emscripten-core/emsdk.git
282282 cd emsdk
@@ -326,15 +326,15 @@ jobs:
326326 echo "::endgroup::"
327327 fi
328328
329- if [ "${{ steps.onnx-cache-valid.outputs.valid }}" != "true" ]; then
330- echo "::group::Building ONNX Runtime (20-30 minutes)"
331- if [ "${{ inputs.force }}" = "true" ]; then
332- pnpm --filter @socketsecurity/onnxruntime run build -- --force
333- else
334- pnpm --filter @socketsecurity/onnxruntime run build
335- fi
336- echo "::endgroup::"
337- fi
329+ # if [ "${{ steps.onnx-cache-valid.outputs.valid }}" != "true" ]; then
330+ # echo "::group::Building ONNX Runtime (20-30 minutes)"
331+ # if [ "${{ inputs.force }}" = "true" ]; then
332+ # pnpm --filter @socketsecurity/onnxruntime run build -- --force
333+ # else
334+ # pnpm --filter @socketsecurity/onnxruntime run build
335+ # fi
336+ # echo "::endgroup::"
337+ # fi
338338
339339 echo "✓ WASM assets built successfully"
340340
@@ -367,8 +367,8 @@ jobs:
367367 echo "AI Models:"
368368 ls -lh packages/socketbin-cli-ai/dist/ 2>/dev/null || echo " ❌ Directory not found"
369369 echo ""
370- echo "ONNX Runtime:"
371- ls -lh packages/onnxruntime/dist/ 2>/dev/null || echo " ❌ Directory not found"
370+ # echo "ONNX Runtime:"
371+ # ls -lh packages/onnxruntime/dist/ 2>/dev/null || echo " ❌ Directory not found"
372372 echo ""
373373
374374 # Fail fast if critical Yoga Layout WASM is missing
0 commit comments