Skip to content

Commit 228a087

Browse files
committed
fix: all platforms use self-hosted binary for fresh user test
1 parent f4f792a commit 228a087

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/ci-macos.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,12 @@ jobs:
316316
"$MCPP" --version
317317
echo ":: Self-host smoke PASS"
318318
319-
- name: Fresh user experience (xlings install mcpp new → run)
319+
- name: Fresh user experience (mcpp new → run)
320320
run: |
321+
MCPP=$(find target -path "*/bin/mcpp" | head -1)
322+
MCPP=$(cd "$(dirname "$MCPP")" && pwd)/$(basename "$MCPP")
321323
TMP=$(mktemp -d)
322324
cd "$TMP"
323-
mcpp new hello
325+
"$MCPP" new hello
324326
cd hello
325-
mcpp run
327+
"$MCPP" run

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,11 @@ jobs:
134134
"$MCPP" build
135135
"$MCPP" test
136136
137-
- name: Fresh user experience (xlings install mcpp → new → run)
138-
env:
139-
XLINGS_NON_INTERACTIVE: '1'
137+
- name: Fresh user experience (mcpp new → run)
140138
run: |
139+
MCPP=$(realpath "$(find target -type f -name mcpp -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2)")
141140
TMP=$(mktemp -d)
142141
cd "$TMP"
143-
mcpp new hello
142+
"$MCPP" new hello
144143
cd hello
145-
mcpp run
144+
"$MCPP" run

0 commit comments

Comments
 (0)