Skip to content

Commit e594bbb

Browse files
committed
debug: search for mcpp binary after xlings install
1 parent b986882 commit e594bbb

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci-windows.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ jobs:
5656
export PATH="$USERPROFILE/.xlings/subos/default/bin:$PATH"
5757
echo "$USERPROFILE/.xlings/subos/default/bin" >> "$GITHUB_PATH"
5858
xlings.exe --version
59-
xlings.exe install mcpp -y || {
60-
echo "::error::xlings install mcpp failed"
61-
echo "Retrying with explicit version..."
62-
xlings.exe install mcpp@0.0.17 -y
63-
}
64-
MCPP="$USERPROFILE/.xlings/subos/default/bin/mcpp.exe"
65-
test -f "$MCPP" || MCPP="$USERPROFILE/.xlings/subos/default/bin/mcpp"
66-
test -f "$MCPP"
59+
xlings.exe install mcpp -y || xlings.exe install mcpp@0.0.17 -y
60+
echo "=== Searching for mcpp binary ==="
61+
find "$USERPROFILE/.xlings" -name "mcpp.exe" -o -name "mcpp" 2>/dev/null | head -10
62+
MCPP=$(find "$USERPROFILE/.xlings" -name "mcpp.exe" -path "*/bin/*" 2>/dev/null | head -1)
63+
if [ -z "$MCPP" ]; then
64+
MCPP=$(find "$USERPROFILE/.xlings" -name "mcpp" -path "*/bin/*" 2>/dev/null | head -1)
65+
fi
66+
test -n "$MCPP" || { echo "FAIL: mcpp not found after xlings install"; exit 1; }
67+
echo "Found mcpp at: $MCPP"
6768
"$MCPP" --version
6869
echo "MCPP=$MCPP" >> "$GITHUB_ENV"
6970
XLINGS_BIN=$(cygpath -w "$USERPROFILE/.xlings/subos/default/bin/xlings.exe")

0 commit comments

Comments
 (0)