Skip to content

Commit 3d21017

Browse files
authored
Merge pull request andreasbuhr#26 from andreasbuhr/add_clang12
Add clang-12 to CI configurations
2 parents db244c8 + 6c069b9 commit 3d21017

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,22 @@ jobs:
6363
exe_linker_flags: -lc++,
6464
cxxver: 20,
6565
}
66+
- {
67+
name: "Linux clang-12 C++17",
68+
os: ubuntu-20.04,
69+
cxx: "clang++-12",
70+
cxx_flags: -stdlib=libc++,
71+
exe_linker_flags: -lc++,
72+
cxxver: 17,
73+
}
74+
- {
75+
name: "Linux clang-12 C++20",
76+
os: ubuntu-20.04,
77+
cxx: "clang++-12",
78+
cxx_flags: -stdlib=libc++,
79+
exe_linker_flags: -lc++,
80+
cxxver: 20,
81+
}
6682
- {
6783
name: "Windows MSVC 2017 (x64) C++17",
6884
os: windows-2016,
@@ -117,6 +133,17 @@ jobs:
117133
sudo ./llvm.sh 11
118134
sudo apt-get install libc++-11-dev libc++abi-11-dev
119135
136+
- name: Install Clang 12
137+
id: install_clang_12
138+
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'clang++-12' )
139+
shell: bash
140+
working-directory: ${{ env.HOME }}
141+
run: |
142+
wget https://apt.llvm.org/llvm.sh
143+
chmod +x llvm.sh
144+
sudo ./llvm.sh 12
145+
sudo apt-get install libc++-12-dev libc++abi-12-dev
146+
120147
- name: Install g++ 10
121148
id: install_gcc_10
122149
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-10' )

0 commit comments

Comments
 (0)