Skip to content

Commit

Permalink
refactor(workflow): add openmp flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 17, 2024
1 parent 0ca5473 commit b25cda3
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@ jobs:
fail-fast: false

matrix:
config: [Release, Debug]
config:
- Release
- Debug
os:
- macos-latest
- ubuntu-latest
- windows-latest

vtk-system: [true, false]
os: [ubuntu-latest, windows-latest, macos-latest]

include:
- os: windows-latest
cmake_args: '-DCMAKE_CXX_FLAGS="-openmp:llvm"'

exclude:
- os: macos-latest
Expand Down Expand Up @@ -46,7 +56,7 @@ jobs:
build
- name: 🏗️ Compile
run: cmake -DCPM_SOURCE_CACHE=deps-cache -DVIENNAPS_BUILD_TESTS=ON -B build && cmake --build build --config ${{ matrix.config }}
run: cmake -DCPM_SOURCE_CACHE=deps-cache -DVIENNAPS_BUILD_TESTS=ON ${{ matrix.cmake_args }} -B build && cmake --build build --config ${{ matrix.config }}

- name: 🧪 Test
run: ctest -E "Benchmark|Performance" -C ${{ matrix.config }} --test-dir build

0 comments on commit b25cda3

Please sign in to comment.