Skip to content

Commit 31c6d33

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

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
@@ -64,6 +64,38 @@ jobs:
6464
echo "LLVM_ROOT=$LLVM_ROOT" >> "$GITHUB_ENV"
6565
echo "CXX=$LLVM_ROOT/bin/clang++" >> "$GITHUB_ENV"
6666
67+
- name: Configure dev mcpp sandbox to reuse xlings LLVM
68+
run: |
69+
LLVM_PKG="$HOME/.xlings/data/xpkgs/xim-x-llvm/20.1.7"
70+
test -d "$LLVM_PKG"
71+
printf '1\n' > "$LLVM_PKG/.mcpp_ok"
72+
73+
mkdir -p "$HOME/.mcpp"
74+
cat > "$HOME/.mcpp/config.toml" <<EOF
75+
# mcpp global config for CI. Dev binaries under target/.../bin/mcpp
76+
# fall back to ~/.mcpp; point that sandbox at the xlings home already
77+
# populated by the explicit `xlings install llvm` step above.
78+
[xlings]
79+
binary = "$HOME/.xlings/subos/default/bin/xlings"
80+
home = "$HOME/.xlings"
81+
82+
[index]
83+
default = "mcpplibs"
84+
85+
[index.repos."mcpplibs"]
86+
url = "https://github.com/mcpp-community/mcpp-index.git"
87+
88+
[cache]
89+
search_ttl_seconds = 3600
90+
91+
[build]
92+
default_jobs = 0
93+
default_backend = "ninja"
94+
EOF
95+
96+
cat "$HOME/.mcpp/config.toml"
97+
ls "$LLVM_PKG/bin/clang++"
98+
6799
- name: Inspect LLVM package structure
68100
run: |
69101
echo "=== bin/ ==="

0 commit comments

Comments
 (0)