Skip to content

Commit ef3322e

Browse files
committed
use matrix for cmake builds (2)
1 parent 916d338 commit ef3322e

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/cmake_tests.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,24 @@ jobs:
3333
name: "Linux Clang"
3434
runs-on: ubuntu-latest
3535

36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
include:
40+
- clang_major: 12
41+
- clang_major: 13
42+
3643
steps:
3744
- name: Checkout
3845
uses: actions/checkout@v2
3946

4047
- name: Install Ninja
4148
uses: seanmiddleditch/gha-setup-ninja@master
4249

43-
- name: Install clang 12
50+
- name: Install clang ${{ matrix.clang_major }}
4451
run: |
4552
sudo apt-get update
46-
sudo apt-get install clang-12 llvm-12
53+
sudo apt-get install clang-${{ matrix.clang_major }} libc++1-${{ matrix.clang_major }} libc++-${{ matrix.clang_major }}-dev libc++abi-${{ matrix.clang_major }}-dev libc++abi1-${{ matrix.clang_major }}
4754
4855
- name: Config
4956
run: |
@@ -64,17 +71,23 @@ jobs:
6471
name: "Linux GCC"
6572
runs-on: ubuntu-latest
6673

74+
strategy:
75+
fail-fast: false
76+
matrix:
77+
include:
78+
- gcc_major: 11
79+
6780
steps:
6881
- name: Checkout
6982
uses: actions/checkout@v2
7083

7184
- name: Install Ninja
7285
uses: seanmiddleditch/gha-setup-ninja@master
7386

74-
- name: Install gcc 11
87+
- name: Install gcc ${{ matrix.gcc_major }}
7588
run: |
7689
sudo apt-get update
77-
sudo apt-get install gcc-11 g++-11 libstdc++-11-dev
90+
sudo apt-get install gcc-${{ matrix.gcc_major }} g++-${{ matrix.gcc_major }} libstdc++-${{ matrix.gcc_major }}-dev
7891
7992
- name: Config
8093
run: |

0 commit comments

Comments
 (0)