Skip to content

Commit ee85314

Browse files
committed
fix(ci): use 'toolchain default' instead of non-existent --toolchain flag
1 parent 052eec2 commit ee85314

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ jobs:
141141
MCPP=$(realpath "$(find target -type f -name mcpp -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2)")
142142
# Install LLVM toolchain into mcpp's sandbox
143143
"$MCPP" toolchain install llvm 20.1.7
144-
# Verify install succeeded
145-
"$MCPP" toolchain list | grep -q llvm
144+
# Set as default so the build picks it up
145+
"$MCPP" toolchain default llvm@20.1.7
146146
# Build a hello-world project with the installed toolchain
147147
TMP=$(mktemp -d)
148148
cd "$TMP"
149149
"$MCPP" new hello
150150
cd hello
151-
"$MCPP" build --toolchain llvm@20.1.7
151+
"$MCPP" build
152152
"$MCPP" run
153153
154154
- name: Fresh user experience (xlings install mcpp → new → run)

0 commit comments

Comments
 (0)