Skip to content

Commit 4ca7ad0

Browse files
committed
chore(ci): add LLVM 18 installation to GitHub workflows
1 parent 2266374 commit 4ca7ad0

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v5
1919

20+
- name: Install LLVM 18
21+
run: |
22+
wget https://apt.llvm.org/llvm.sh
23+
chmod +x llvm.sh
24+
sudo ./llvm.sh 18
25+
sudo apt-get install -y llvm-18-dev libclang-18-dev
26+
echo "LLVM_SYS_180_PREFIX=/usr/lib/llvm-18" >> $GITHUB_ENV
27+
2028
- name: Install Rust
2129
uses: dtolnay/rust-toolchain@stable
2230
with:

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,28 @@ jobs:
6868
steps:
6969
- uses: actions/checkout@v5
7070

71+
- name: Install LLVM 18 (Ubuntu)
72+
if: matrix.os == 'ubuntu-latest'
73+
run: |
74+
wget https://apt.llvm.org/llvm.sh
75+
chmod +x llvm.sh
76+
sudo ./llvm.sh 18
77+
sudo apt-get install -y llvm-18-dev libclang-18-dev
78+
echo "LLVM_SYS_180_PREFIX=/usr/lib/llvm-18" >> $GITHUB_ENV
79+
80+
- name: Install LLVM 18 (macOS)
81+
if: matrix.os == 'macos-latest'
82+
run: |
83+
brew install llvm@18
84+
echo "/opt/homebrew/opt/llvm@18/bin" >> $GITHUB_PATH
85+
echo "LLVM_SYS_180_PREFIX=/opt/homebrew/opt/llvm@18" >> $GITHUB_ENV
86+
87+
- name: Install LLVM 18 (Windows)
88+
if: matrix.os == 'windows-latest'
89+
run: |
90+
choco install llvm --version=18.1.8
91+
echo "LLVM_SYS_180_PREFIX=C:\Program Files\LLVM" >> $env:GITHUB_ENV
92+
7193
- name: Install Rust
7294
uses: dtolnay/rust-toolchain@stable
7395
with:
@@ -110,6 +132,14 @@ jobs:
110132
steps:
111133
- uses: actions/checkout@v5
112134

135+
- name: Install LLVM 18
136+
run: |
137+
wget https://apt.llvm.org/llvm.sh
138+
chmod +x llvm.sh
139+
sudo ./llvm.sh 18
140+
sudo apt-get install -y llvm-18-dev libclang-18-dev
141+
echo "LLVM_SYS_180_PREFIX=/usr/lib/llvm-18" >> $GITHUB_ENV
142+
113143
- name: Install Rust
114144
uses: dtolnay/rust-toolchain@stable
115145

.github/workflows/update-deps.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ jobs:
1515
with:
1616
token: ${{ secrets.GITHUB_TOKEN }}
1717

18+
- name: Install LLVM 18
19+
run: |
20+
wget https://apt.llvm.org/llvm.sh
21+
chmod +x llvm.sh
22+
sudo ./llvm.sh 18
23+
sudo apt-get install -y llvm-18-dev libclang-18-dev
24+
echo "LLVM_SYS_180_PREFIX=/usr/lib/llvm-18" >> $GITHUB_ENV
25+
1826
- name: Install Rust
1927
uses: dtolnay/rust-toolchain@stable
2028

0 commit comments

Comments
 (0)