Skip to content

Commit 60bc53b

Browse files
committed
Update workflow to llvm 18
1 parent 43b462d commit 60bc53b

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/ci.yml

+25-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ jobs:
1919
- uses: actions/setup-python@v5
2020
with: { python-version: "3.12" }
2121

22+
- name: Install LLVM 18
23+
run: |
24+
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
25+
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
26+
sudo apt update
27+
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-format-18 clang-tools-18 libclang-18-dev -y
28+
2229
- name: Install codespell
2330
run: pip3 install codespell
2431

2532
- name: Lint
26-
run: cmake -D FORMAT_COMMAND=clang-format-14 -P cmake/lint.cmake
33+
run: cmake -D FORMAT_COMMAND=clang-format-18 -P cmake/lint.cmake
2734

2835
- name: Spell check
2936
if: always()
@@ -34,7 +41,7 @@ jobs:
3441

3542
runs-on: ubuntu-22.04
3643

37-
env: { CXX: clang++-14 }
44+
env: { CXX: clang++-18 }
3845

3946
steps:
4047
- uses: actions/checkout@v4
@@ -43,6 +50,13 @@ jobs:
4350
uses: actions/setup-python@v5
4451
with: { python-version: "3.12" }
4552

53+
- name: Install LLVM 18
54+
run: |
55+
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
56+
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
57+
sudo apt update
58+
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-format-18 clang-tools-18 libclang-18-dev -y
59+
4660
- name: Conan cache
4761
uses: actions/cache@v4
4862
with:
@@ -83,14 +97,21 @@ jobs:
8397
steps:
8498
- uses: actions/checkout@v4
8599

100+
- name: Install LLVM 18
101+
run: |
102+
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
103+
sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main"
104+
sudo apt update
105+
sudo apt install llvm-18 llvm-18-dev llvm-18-tools clang-18 clang-tidy-18 clang-format-18 clang-tools-18 libclang-18-dev -y
106+
86107
- name: Install static analyzers
87108
if: matrix.os == 'ubuntu-22.04'
88109
run: >-
89-
sudo apt-get install clang-tidy-14 cppcheck -y -q
110+
sudo apt-get install clang-tidy-18 cppcheck -y -q
90111
91112
sudo update-alternatives --install
92113
/usr/bin/clang-tidy clang-tidy
93-
/usr/bin/clang-tidy-14 140
114+
/usr/bin/clang-tidy-18 140
94115
95116
- name: Install Python
96117
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)