Skip to content

Commit

Permalink
Matricify
Browse files Browse the repository at this point in the history
  • Loading branch information
SchaichAlonso committed Feb 18, 2024
1 parent c0796d1 commit 7fe7070
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ on:

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
runner: ['ubuntu-22.04', 'windows-2022']
build_type: ['debug', 'release']

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

steps:
- name: Checkout Repository
Expand All @@ -26,13 +29,13 @@ jobs:

- name: Configure
working-directory: ${{github.workspace}}
run: cmake --preset ci-x64-windows-vs2022-release
run: cmake --preset gh-${{matrix.runner}}-${{matrix.build_type}}

- name: Build
working-directory: ${{github.workspace}}
run: cmake --build --preset ci-x64-windows-vs2022-release
run: cmake --build --preset gh-${{matrix.runner}}-${{matrix.build_type}}

- name: Test
working-directory: ${{github.workspace}}
run: ctest --preset ci-x64-windows-vs2022-release
run: ctest --preset gh-${{matrix.runner}}-${{matrix.build_type}}

0 comments on commit 7fe7070

Please sign in to comment.