Skip to content

Commit 10d694d

Browse files
committed
Update cmake.yml
1 parent 5f3212f commit 10d694d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,19 @@ jobs:
6464
with:
6565
submodules: true
6666

67+
- name: Install Clang 18 (Linux)
68+
if: matrix.os == 'ubuntu-22.04'
69+
run: |
70+
sudo apt update
71+
sudo apt install -y wget lsb-release software-properties-common gnupg
72+
wget https://apt.llvm.org/llvm.sh
73+
chmod +x llvm.sh
74+
sudo ./llvm.sh 18 all
75+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-18 100
76+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 100
77+
clang-18 --version
78+
clang++-18 --version
79+
6780
- name: Set reusable strings
6881
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
6982
id: strings

0 commit comments

Comments
 (0)