Skip to content

Commit bf71eb1

Browse files
Qardclaude
andcommitted
Fix WASM file location - check workspace target directory
Cargo uses workspace-level target directory (../target) instead of local target. The WASM file is built to ../target/wasm32-wasip1/release/fix-python-soname.wasm. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f86373a commit bf71eb1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,25 @@ jobs:
181181
ls -la target/wasm32-wasip1/ 2>/dev/null || echo "No wasm32-wasip1 directory"
182182
ls -la target/wasm32-wasip1/release/ 2>/dev/null || echo "No release directory"
183183
echo "===== Copying WASM to root ====="
184-
# WASM binaries might not have .wasm extension, try both
184+
# Check both local and parent target directories (workspace)
185185
if [ -f "target/wasm32-wasip1/release/fix-python-soname.wasm" ]; then
186186
cp target/wasm32-wasip1/release/fix-python-soname.wasm ..
187-
echo "Copied .wasm file"
187+
echo "Copied .wasm file from local target"
188+
elif [ -f "../target/wasm32-wasip1/release/fix-python-soname.wasm" ]; then
189+
cp ../target/wasm32-wasip1/release/fix-python-soname.wasm ..
190+
echo "Copied .wasm file from workspace target"
188191
elif [ -f "target/wasm32-wasip1/release/fix-python-soname" ]; then
189192
cp target/wasm32-wasip1/release/fix-python-soname ../fix-python-soname.wasm
190-
echo "Copied binary file as .wasm"
193+
echo "Copied binary file as .wasm from local target"
194+
elif [ -f "../target/wasm32-wasip1/release/fix-python-soname" ]; then
195+
cp ../target/wasm32-wasip1/release/fix-python-soname ../fix-python-soname.wasm
196+
echo "Copied binary file as .wasm from workspace target"
191197
else
192198
echo "ERROR: No WASM or binary file found"
193-
ls -la target/wasm32-wasip1/release/ 2>/dev/null || echo "No release directory"
199+
echo "Local target:"
200+
ls -la target/wasm32-wasip1/release/ 2>/dev/null || echo "No local release directory"
201+
echo "Workspace target:"
202+
ls -la ../target/wasm32-wasip1/release/ 2>/dev/null || echo "No workspace release directory"
194203
exit 1
195204
fi
196205
cd ..

0 commit comments

Comments
 (0)