Skip to content

Commit d77523b

Browse files
committed
Update cmake.yml
1 parent c38b501 commit d77523b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@ jobs:
7171
run: |
7272
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
7373
74+
- name: Install Clang and Libraries
75+
if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang'
76+
run: |
77+
sudo apt-get update
78+
sudo apt-get install -y clang libc++-dev libc++abi-dev
79+
80+
- name: Set Clang 16 as Default
81+
if: matrix.os == 'ubuntu-24.04' && matrix.c_compiler == 'clang'
82+
run: |
83+
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-16 100
84+
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-16 100
85+
sudo update-alternatives --set clang /usr/bin/clang-16
86+
sudo update-alternatives --set clang++ /usr/bin/clang++-16
87+
7488
- name: Check Clang Settings
7589
if: matrix.os == 'ubuntu-22.04' && matrix.c_compiler == 'clang'
7690
run: |

0 commit comments

Comments
 (0)