Skip to content

Commit

Permalink
Simplify linux matrix
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Aug 15, 2024
1 parent eed4784 commit 1bdc652
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,29 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: [g++-11, g++-12, g++-13, g++-14, clang++-13, clang++-14, clang++-15, clang++-16, clang++-17, clang++-18]
os: [ubuntu-22.04, ubuntu-24.04]
platform:
- os: ubuntu-24.04
compiler: g++-12
- os: ubuntu-24.04
compiler: g++-13
- os: ubuntu-24.04
compiler: g++-14
- os: ubuntu-24.04
compiler: clang++-16
- os: ubuntu-24.04
compiler: clang++-17
- os: ubuntu-24.04
compiler: clang++-18
- os: ubuntu-22.04
compiler: g++-11
- os: ubuntu-22.04
compiler: clang++-13
- os: ubuntu-22.04
compiler: clang++-14
- os: ubuntu-22.04
compiler: clang++-15
build_type: [Release, Debug]
include:
- compiler: g++-11
os: ubuntu-24.04
- compiler: clang++-16
os: ubuntu-22.04
exclude:
- compiler: g++-11
os: ubuntu-24.04
- compiler: clang++-16
os: ubuntu-22.04
runs-on: ${{ matrix.os }}
runs-on: ${{ matrix.platform.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -39,7 +48,7 @@ jobs:
run: |
cmake -S $GITHUB_WORKSPACE -B build \
-GNinja \
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }} \
-DCMAKE_CXX_COMPILER=${{ matrix.platform.compiler }} \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Build project
Expand Down

0 comments on commit 1bdc652

Please sign in to comment.