Skip to content

Commit 167571d

Browse files
committed
Add gcc 11 to CI
1 parent 988df1d commit 167571d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ jobs:
3131
cxx: "g++-10",
3232
cxxver: 20,
3333
}
34+
- {
35+
name: "Linux g++ 11 C++17",
36+
os: ubuntu-20.04,
37+
cxx: "g++-11",
38+
cxxver: 17,
39+
}
40+
- {
41+
name: "Linux g++ 11 C++20",
42+
os: ubuntu-20.04,
43+
cxx: "g++-11",
44+
cxxver: 20,
45+
}
3446
- {
3547
name: "Linux clang-10 C++17",
3648
os: ubuntu-20.04,
@@ -207,6 +219,15 @@ jobs:
207219
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
208220
sudo apt-get install g++-10
209221
222+
- name: Install g++ 11
223+
id: install_gcc_11
224+
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-11' )
225+
shell: bash
226+
working-directory: ${{ env.HOME }}
227+
run: |
228+
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa
229+
sudo apt-get install g++-11
230+
210231
- name: Create Build Environment
211232
# Some projects don't allow in-source building, so create a separate build directory
212233
# We'll use this as our working directory for all subsequent commands

0 commit comments

Comments
 (0)