File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -318,14 +318,8 @@ jobs:
318318
319319 - name : Fresh user experience (xlings install mcpp → new → run)
320320 run : |
321- # Replace xlings mcpp with our self-hosted build
322- MCPP_SELF=$(find target -path "*/bin/mcpp" | head -1)
323- MCPP_SELF=$(cd "$(dirname "$MCPP_SELF")" && pwd)/$(basename "$MCPP_SELF")
324321 xlings remove mcpp -y 2>/dev/null || true
325- MCPP_BIN=$(which mcpp 2>/dev/null || echo "$HOME/.xlings/subos/default/bin/mcpp")
326- cp "$MCPP_SELF" "$MCPP_BIN"
327- chmod +x "$MCPP_BIN"
328-
322+ xlings install mcpp -y
329323 TMP=$(mktemp -d)
330324 cd "$TMP"
331325 mcpp new hello
Original file line number Diff line number Diff line change @@ -111,12 +111,8 @@ jobs:
111111 - name : Fresh user experience (xlings install mcpp → new → run)
112112 shell : bash
113113 run : |
114- # Replace xlings mcpp with our self-hosted build, then test
115- # the real user flow: mcpp new hello && cd hello && mcpp run
116114 xlings.exe remove mcpp -y 2>/dev/null || true
117- MCPP_BIN=$(which mcpp.exe 2>/dev/null || echo "$USERPROFILE/.xlings/subos/default/bin/mcpp.exe")
118- cp "$MCPP_SELF" "$MCPP_BIN"
119-
115+ xlings.exe install mcpp -y
120116 TMP=$(mktemp -d)
121117 cd "$TMP"
122118 mcpp.exe new hello
Original file line number Diff line number Diff line change @@ -136,13 +136,8 @@ jobs:
136136
137137 - name : Fresh user experience (xlings install mcpp → new → run)
138138 run : |
139- # Replace xlings mcpp with our self-hosted build
140- MCPP_SELF=$(realpath "$(find target -type f -name mcpp -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2)")
141139 xlings remove mcpp -y 2>/dev/null || true
142- MCPP_BIN=$(which mcpp 2>/dev/null || echo "$HOME/.xlings/subos/default/bin/mcpp")
143- cp "$MCPP_SELF" "$MCPP_BIN"
144- chmod +x "$MCPP_BIN"
145-
140+ xlings install mcpp -y
146141 TMP=$(mktemp -d)
147142 cd "$TMP"
148143 mcpp new hello
You can’t perform that action at this time.
0 commit comments