Skip to content

Commit b986882

Browse files
committed
fix: retry xlings install mcpp with explicit version on failure
1 parent 9723664 commit b986882

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
@@ -56,7 +56,11 @@ 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
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+
}
6064
MCPP="$USERPROFILE/.xlings/subos/default/bin/mcpp.exe"
6165
test -f "$MCPP" || MCPP="$USERPROFILE/.xlings/subos/default/bin/mcpp"
6266
test -f "$MCPP"

0 commit comments

Comments
 (0)