Skip to content

Commit 65a922f

Browse files
authored
Merge pull request #15 from StephanKa/feature/rework-cmake-github-action
rework compiler in github action
2 parents cf287be + 89c2f27 commit 65a922f

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/build_cmake.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,19 @@ env:
1313

1414
jobs:
1515
build:
16-
16+
name: ${{ matrix.os }}, ${{ matrix.compiler.name }}
1717
runs-on: ${{ matrix.os }}
1818
strategy:
19+
fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix entry fails.
1920
matrix:
20-
os: [ubuntu-latest]
21-
compiler: [ {cpp: g++-10, c: gcc-10}, {cpp: g++-11, c: gcc-11}, {cpp: clang++-10, c: clang-10}, {cpp: clang++-11, c: clang-11}, {cpp: clang++-12, c: clang-12} ]
21+
os: [ubuntu-22.04]
22+
compiler: [ {name: 'GCC 10', cpp: g++-10, c: gcc-10, pkgs: 'gcc-10 g++-10 lib32gcc-10-dev gcc-multilib'},
23+
{name: 'GCC 11', cpp: g++-11, c: gcc-11, pkgs: 'gcc-11 g++-11 lib32gcc-11-dev gcc-multilib'},
24+
{name: 'Clang 12', cpp: clang++-12, c: clang-12, pkgs: 'clang-12 llvm-12'},
25+
{name: 'Clang 13', cpp: clang++-13, c: clang-13, pkgs: 'clang-13 llvm-13'},
26+
{name: 'Clang 14', cpp: clang++-14, c: clang-14, pkgs: 'clang-14 llvm-14'},
27+
{name: 'Clang 15', cpp: clang++-15, c: clang-15, pkgs: 'clang-15 llvm-15'}
28+
]
2229

2330
steps:
2431
- uses: actions/checkout@v2
@@ -39,8 +46,9 @@ jobs:
3946
run: cmake -E make_directory ${{runner.workspace}}/build
4047

4148
- run: |
49+
sudo bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"
4250
sudo apt update
43-
sudo apt install gcc-11 g++-11 clang-12 llvm-12
51+
sudo apt install ${{ matrix.compiler.pkgs }}
4452
shell: bash
4553
4654
- name: Install conan

0 commit comments

Comments
 (0)