File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments