Skip to content

Commit 432e67e

Browse files
Run 'gcc' job from linux workflow also on g++-11
1 parent 5c4ec97 commit 432e67e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/linux.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10+
compiler: [g++-10, g++-11]
1011
configuration: [Debug, Release]
1112
steps:
1213
- uses: actions/checkout@v2
14+
- name: Add toolchain PPA
15+
if: matrix.compiler == 'g++-11'
16+
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test
1317
- name: install
14-
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev gcc-10 g++-10
18+
run: sudo apt-get update && sudo apt-get install -y libsdl2-dev ${{ matrix.compiler }}
1519
- name: configure
16-
run: CC=gcc-10 CXX=g++-10 cmake -D BUILD_TESTS=1 -D CMAKE_BUILD_TYPE=${{ matrix.configuration }} -S . -B ${{ matrix.configuration }}
20+
run: CC=gcc-10 CXX=${{ matrix.compiler }} cmake -D BUILD_TESTS=1 -D CMAKE_BUILD_TYPE=${{ matrix.configuration }} -S . -B ${{ matrix.configuration }}
1721
- name: build
1822
run: cd ${{ matrix.configuration }} && make -j $(nproc --all)
1923
- name: run unit tests

0 commit comments

Comments
 (0)