Skip to content

Commit a7bf8c9

Browse files
committed
fix: copy bootstrap mcpp.exe before cleaning build dir
The self-host step was deleting the build/ directory which contained the bootstrap binary, causing "No such file or directory" (exit 127).
1 parent e904128 commit a7bf8c9

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci-windows.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,14 @@ jobs:
237237
shell: bash
238238
run: |
239239
echo "=== Self-host: using bootstrapped mcpp.exe to build mcpp ==="
240+
# Save bootstrap binary before cleaning xmake artifacts
241+
mkdir -p /tmp/mcpp-bootstrap
242+
cp "$MCPP_BOOTSTRAP" /tmp/mcpp-bootstrap/mcpp.exe
243+
MCPP_EXE="/tmp/mcpp-bootstrap/mcpp.exe"
244+
240245
# Clean xmake artifacts so mcpp starts fresh
241246
rm -rf build xmake.lua .xmake
242247
243-
MCPP_EXE="$MCPP_BOOTSTRAP"
244248
echo "Bootstrap binary: $MCPP_EXE"
245249
"$MCPP_EXE" --version
246250

0 commit comments

Comments
 (0)