Skip to content

Commit f86373a

Browse files
Qardclaude
andcommitted
Add comprehensive cargo target directory debugging
The cargo build succeeds but no target directory is found. This adds extensive debugging to understand where cargo is placing build artifacts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9d4430b commit f86373a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/CI.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,23 @@ jobs:
159159
exit 1
160160
}
161161
echo "===== Checking build output ====="
162+
echo "Current cargo environment:"
163+
echo "CARGO_TARGET_DIR: ${CARGO_TARGET_DIR:-not set}"
164+
echo "PWD: $(pwd)"
165+
echo "Listing current directory:"
166+
ls -la
162167
echo "Finding all files in target directory:"
163168
find target -type f 2>/dev/null || echo "No target directory found"
169+
echo "Finding all hidden target directories:"
170+
find . -name ".target*" -type d 2>/dev/null || echo "No hidden target dirs"
171+
echo "Finding target dirs anywhere:"
172+
find . -name "target" -type d 2>/dev/null || echo "No target dirs found"
164173
echo "Looking for WASM files specifically:"
165174
find . -name "*.wasm" -type f 2>/dev/null || echo "No WASM files found"
166175
echo "Looking for any files with 'fix-python-soname' in name:"
167176
find . -name "*fix-python-soname*" -type f 2>/dev/null || echo "No fix-python-soname files found"
177+
echo "Checking if there's a target in parent directory:"
178+
ls -la ../target 2>/dev/null || echo "No parent target directory"
168179
echo "Checking target structure:"
169180
ls -la target/ 2>/dev/null || echo "No target directory"
170181
ls -la target/wasm32-wasip1/ 2>/dev/null || echo "No wasm32-wasip1 directory"

0 commit comments

Comments
 (0)