File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 3535 sudo ln -sf ld.lld-21 /usr/bin/ld
3636 ld --version
3737
38+ - name : ' macOS: Install Homebrew clang 21'
39+ if : runner.os == 'macOS'
40+ shell : bash
41+ run : |
42+ set -eux
43+ brew install llvm@21
44+
45+ if [[ '${{ inputs.arch }}' == arm64 ]]; then
46+ prefix="/opt/homebrew/opt/llvm"
47+ else
48+ prefix="/usr/local/opt/llvm"
49+ fi
50+
51+ # use it as C(++) compiler for future steps
52+ echo "CC=$prefix/bin/clang" >> $GITHUB_ENV
53+ echo "CXX=$prefix/bin/clang++" >> $GITHUB_ENV
54+
55+ # https://github.com/actions/runner-images/issues/10035#issue-2344536514
56+ sudo xcode-select -s /Library/Developer/CommandLineTools
57+ xcrun --show-sdk-path
58+ ls -l /Library/Developer/CommandLineTools/SDKs
59+
60+ # https://github.com/llvm/llvm-project/issues/155531#issuecomment-3229499205
61+ rm -rf "$prefix/include/c++/v1"
62+
3863 - name : ' Windows: Install clang 21 from GitHub'
3964 if : runner.os == 'Windows'
4065 shell : bash
Original file line number Diff line number Diff line change @@ -76,11 +76,11 @@ jobs:
7676 arch : arm64
7777 with_asserts : true
7878 - job_name : macOS x86_64
79- os : macos-13
79+ os : macos-15-intel
8080 arch : x86_64
8181 with_asserts : false
8282 - job_name : macOS x86_64 withAsserts
83- os : macos-13
83+ os : macos-15-intel
8484 arch : x86_64
8585 with_asserts : true
8686 name : ${{ matrix.job_name }}
You can’t perform that action at this time.
0 commit comments