Skip to content

Commit

Permalink
Create preset->runner associations
Browse files Browse the repository at this point in the history
  • Loading branch information
SchaichAlonso authored Feb 21, 2024
1 parent 4c78564 commit 0178039
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ jobs:
strategy:
fail-fast: false
matrix:
runner: ['ubuntu-22.04', 'ubuntu-22.04-dynamic', 'windows-2022']
target: ['ubuntu-22.04', 'ubuntu-22.04-dynamic', 'windows-2022']
build_type: ['debug', 'release']
include:
- target: 'ubuntu-22.04'
runner: 'ubuntu-22.04'
- target: 'ubuntu-22.04-dynamic'
runner: 'ubuntu-22.04'
- target: 'windows-2022'
runner: 'windows-2022'

runs-on: ${{ matrix.runner }}

Expand All @@ -29,13 +36,13 @@ jobs:

- name: Configure
working-directory: ${{github.workspace}}
run: cmake --preset gh-${{matrix.runner}}-${{matrix.build_type}}
run: cmake --preset gh-${{matrix.target}}-${{matrix.build_type}}

- name: Build
working-directory: ${{github.workspace}}
run: cmake --build --preset gh-${{matrix.runner}}-${{matrix.build_type}}
run: cmake --build --preset gh-${{matrix.target}}-${{matrix.build_type}}

- name: Test
working-directory: ${{github.workspace}}
run: ctest --preset gh-${{matrix.runner}}-${{matrix.build_type}}
run: ctest --preset gh-${{matrix.target}}-${{matrix.build_type}}

0 comments on commit 0178039

Please sign in to comment.