Skip to content

Commit b7e56f4

Browse files
committed
fix: fresh user test uses real xlings install mcpp flow
xlings remove mcpp xlings install mcpp mcpp new hello cd hello mcpp run 100% real user flow — xlings installs mcpp, mcpp auto-installs toolchain, builds and runs. No manual cp, no env manipulation.
1 parent a63a3ea commit b7e56f4

3 files changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/ci-macos.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ci-windows.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)