6767 run : |
6868 if [ -f "packages/yoga-layout/build/wasm/yoga.wasm" ] && [ -f "packages/yoga-layout/build/wasm/yoga.js" ]; then
6969 echo "valid=true" >> $GITHUB_OUTPUT
70+ echo "Cache hit: artifacts found"
71+ ls -lh packages/yoga-layout/build/wasm/
7072 else
7173 echo "valid=false" >> $GITHUB_OUTPUT
72- echo "Cache restored but artifacts missing, forcing rebuild"
74+ echo "Cache miss or incomplete: forcing rebuild"
75+ ls -lh packages/yoga-layout/build/wasm/ 2>/dev/null || echo "Directory does not exist"
7376 fi
7477
7578 - name : Install Emscripten
8891 echo "::group::Building Yoga Layout WASM"
8992 source emsdk/emsdk_env.sh
9093 pnpm --filter @socketsecurity/yoga-layout run build
94+ echo "Build exit code: $?"
95+ echo "Checking for build artifacts..."
96+ ls -lh packages/yoga-layout/build/wasm/ || echo "wasm directory not found"
97+ ls -lh packages/yoga-layout/build/cmake/ || echo "cmake directory not found"
9198 echo "::endgroup::"
9299
93100 - name : Verify build artifacts
@@ -162,16 +169,22 @@ jobs:
162169 run : |
163170 if [ -f "packages/socketbin-cli-ai/dist/ai.bz" ] && [ -f "packages/socketbin-cli-ai/dist/ai.js" ]; then
164171 echo "valid=true" >> $GITHUB_OUTPUT
172+ echo "Cache hit: artifacts found"
173+ ls -lh packages/socketbin-cli-ai/dist/
165174 else
166175 echo "valid=false" >> $GITHUB_OUTPUT
167- echo "Cache restored but artifacts missing, forcing rebuild"
176+ echo "Cache miss or incomplete: forcing rebuild"
177+ ls -lh packages/socketbin-cli-ai/dist/ 2>/dev/null || echo "Directory does not exist"
168178 fi
169179
170180 - name : Build AI models
171181 if : steps.ai-cache-valid.outputs.valid != 'true' || inputs.force
172182 run : |
173183 echo "::group::Building AI models (this will take 10-15 minutes)"
174184 pnpm --filter @socketbin/cli-ai run build
185+ echo "Build exit code: $?"
186+ echo "Checking for build artifacts..."
187+ ls -lh packages/socketbin-cli-ai/dist/ || echo "dist directory not found"
175188 echo "::endgroup::"
176189
177190 - name : Verify build artifacts
@@ -234,9 +247,12 @@ jobs:
234247 run : |
235248 if [ -f "packages/onnx-runtime-builder/dist/onnxruntime-web.wasm" ]; then
236249 echo "valid=true" >> $GITHUB_OUTPUT
250+ echo "Cache hit: artifacts found"
251+ ls -lh packages/onnx-runtime-builder/dist/
237252 else
238253 echo "valid=false" >> $GITHUB_OUTPUT
239- echo "Cache restored but artifacts missing, forcing rebuild"
254+ echo "Cache miss or incomplete: forcing rebuild"
255+ ls -lh packages/onnx-runtime-builder/dist/ 2>/dev/null || echo "Directory does not exist"
240256 fi
241257
242258 - name : Install Emscripten
@@ -255,6 +271,9 @@ jobs:
255271 echo "::group::Building ONNX Runtime WASM (this will take 20-30 minutes)"
256272 source emsdk/emsdk_env.sh
257273 pnpm --filter @socketsecurity/onnx-runtime-builder run build
274+ echo "Build exit code: $?"
275+ echo "Checking for build artifacts..."
276+ ls -lh packages/onnx-runtime-builder/dist/ || echo "dist directory not found"
258277 echo "::endgroup::"
259278
260279 - name : Verify build artifacts
0 commit comments