Skip to content

Commit a5508b3

Browse files
committed
Testing prebuilt binaries for CI
1 parent b2798c3 commit a5508b3

File tree

1 file changed

+33
-14
lines changed

1 file changed

+33
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,39 @@ jobs:
5151
author_email: github_action@lesma.com
5252
message: 'Committing clang-format changes'
5353

54-
- name: Cache LLVM and Clang
55-
id: cache-llvm
56-
uses: actions/cache@v4
57-
with:
58-
path: |
59-
C:/Program Files/LLVM
60-
./llvm
61-
key: llvm-21-${{ matrix.os }}
62-
63-
- name: Install LLVM and Clang
64-
uses: KyleMayes/install-llvm-action@v2
65-
with:
66-
version: "21"
67-
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
54+
# - name: Cache LLVM and Clang
55+
# id: cache-llvm
56+
# uses: actions/cache@v4
57+
# with:
58+
# path: |
59+
# C:/Program Files/LLVM
60+
# ./llvm
61+
# key: llvm-21-${{ matrix.os }}
62+
63+
# - name: Install LLVM and Clang
64+
# uses: KyleMayes/install-llvm-action@v2
65+
# with:
66+
# version: "21"
67+
# cached: ${{ steps.cache-llvm.outputs.cache-hit }}
68+
69+
- name: Install LLVM, Clang, and LLD (Linux)
70+
if: runner.os == 'Linux'
71+
run: |
72+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
73+
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-21 main"
74+
sudo apt-get update
75+
sudo apt-get install -y llvm-21 llvm-21-dev clang-21 lld-21 libc++-21-dev libc++abi-21-dev
76+
sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-21 100
77+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-21 100
78+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-21 100
79+
80+
- name: Install LLVM, Clang, and LLD (macOS)
81+
if: runner.os == 'macOS'
82+
run: |
83+
brew install llvm@21 lld
84+
echo "/opt/homebrew/opt/llvm@21/bin" >> $GITHUB_PATH
85+
echo "LDFLAGS=-L/opt/homebrew/opt/llvm@21/lib" >> $GITHUB_ENV
86+
echo "CPPFLAGS=-I/opt/homebrew/opt/llvm@21/include" >> $GITHUB_ENV
6887
6988
- name: Install CMake & Ninja
7089
uses: lukka/get-cmake@latest

0 commit comments

Comments
 (0)