Skip to content

Commit db4a3b2

Browse files
committed
fix: reuse macos ci llvm toolchain
1 parent b047012 commit db4a3b2

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/ci-macos.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,38 @@ jobs:
283283
export MCPP_VENDORED_XLINGS="$XLINGS_BIN"
284284
"$MCPP" build
285285
286+
- name: Configure dev mcpp sandbox to reuse xlings LLVM
287+
run: |
288+
LLVM_PKG="$HOME/.xlings/data/xpkgs/xim-x-llvm/20.1.7"
289+
test -d "$LLVM_PKG"
290+
printf '1\n' > "$LLVM_PKG/.mcpp_ok"
291+
292+
mkdir -p "$HOME/.mcpp"
293+
cat > "$HOME/.mcpp/config.toml" <<EOF
294+
# mcpp global config for CI. Dev binaries under target/.../bin/mcpp
295+
# fall back to ~/.mcpp; point that sandbox at the xlings home already
296+
# populated by the explicit `xlings install llvm` step above.
297+
[xlings]
298+
binary = "$HOME/.xlings/subos/default/bin/xlings"
299+
home = "$HOME/.xlings"
300+
301+
[index]
302+
default = "mcpplibs"
303+
304+
[index.repos."mcpplibs"]
305+
url = "https://github.com/mcpp-community/mcpp-index.git"
306+
307+
[cache]
308+
search_ttl_seconds = 3600
309+
310+
[build]
311+
default_jobs = 0
312+
default_backend = "ninja"
313+
EOF
314+
315+
cat "$HOME/.mcpp/config.toml"
316+
ls "$LLVM_PKG/bin/clang++"
317+
286318
- name: Unit + integration tests via `mcpp test`
287319
run: |
288320
# Use freshly-built mcpp (has --mirror support)

0 commit comments

Comments
 (0)