Skip to content

Commit cefee40

Browse files
Qardclaude
andcommitted
Add detailed debugging output for WASM build in CI
- Add clear section markers with ===== for visibility - Show current directory and file listings at each step - Exit with error if build or copy fails - Use find to locate WASM files if copy fails This will help diagnose why the WASM file is not being included in artifacts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6a0ffc0 commit cefee40

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

.github/workflows/CI.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,19 +147,35 @@ jobs:
147147
148148
# Build the WASI module for Linux targets
149149
if [[ "${{ matrix.settings.target }}" == "x86_64-unknown-linux-gnu" ]]; then
150-
echo "Building fix-python-soname WASI module..."
150+
echo "===== Building fix-python-soname WASI module ====="
151151
rustup target add wasm32-wasip1
152+
echo "===== Entering fix-python-soname directory ====="
152153
cd fix-python-soname
153-
echo "Current directory: $(pwd)"
154-
echo "Building WASM module..."
155-
cargo build --target wasm32-wasip1 --release
156-
echo "Build complete. Checking for WASM file..."
157-
ls -la target/wasm32-wasip1/release/ || echo "Release directory not found"
158-
# Copy WASM to root from fix-python-soname directory
159-
cp target/wasm32-wasip1/release/fix-python-soname.wasm .. || echo "Failed to copy WASM"
154+
pwd
155+
ls -la
156+
echo "===== Building WASM with cargo ====="
157+
cargo build --target wasm32-wasip1 --release || {
158+
echo "ERROR: Cargo build failed!"
159+
exit 1
160+
}
161+
echo "===== Checking build output ====="
162+
find . -name "*.wasm" -type f
163+
ls -la target/wasm32-wasip1/release/ || echo "ERROR: Release directory not found"
164+
echo "===== Copying WASM to root ====="
165+
cp target/wasm32-wasip1/release/fix-python-soname.wasm .. || {
166+
echo "ERROR: Failed to copy WASM file"
167+
ls -la target/wasm32-wasip1/release/
168+
exit 1
169+
}
160170
cd ..
161-
echo "Back in root directory: $(pwd)"
162-
ls -la fix-python-soname.wasm || echo "WASM file not found after copy"
171+
echo "===== Verifying WASM file in root ====="
172+
pwd
173+
ls -la fix-python-soname.wasm || {
174+
echo "ERROR: WASM file not found after copy"
175+
find . -name "*.wasm" -type f
176+
exit 1
177+
}
178+
echo "===== WASM build complete ====="
163179
fi
164180
- name: Build
165181
run: ${{ matrix.settings.build }}

0 commit comments

Comments
 (0)