Skip to content

Commit

Permalink
Add macos to CI (#72)
Browse files Browse the repository at this point in the history
Closes #70
  • Loading branch information
c71n93 authored Oct 28, 2023
1 parent be8ef03 commit c478557
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,31 @@ env:
jobs:
build:
name: Running unit tests with ${{matrix.ctest_option}} option
runs-on: ubuntu-latest
strategy:
matrix:
ctect_option:
- "-DBESM666_TEST_WITH_VALGRIND=OFF"
- "-DBESM666_TEST_WITH_VALGRIND=ON"
os: [ ubuntu-latest, macos-12 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: install valgrind
if: ${{ matrix.os != 'macos-12' }}
run: sudo apt update && sudo apt install -y valgrind

- name: Configure CMake
if: ${{ !(matrix.os == 'macos-12' && matrix.ctect_option == '-DBESM666_TEST_WITH_VALGRIND=ON') }}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ${{matrix.ctect_option}}

- name: Build
if: ${{ !(matrix.os == 'macos-12' && matrix.ctect_option == '-DBESM666_TEST_WITH_VALGRIND=ON') }}
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
if: ${{ !(matrix.os == 'macos-12' && matrix.ctect_option == '-DBESM666_TEST_WITH_VALGRIND=ON') }}
working-directory: ${{github.workspace}}/build
run: ctest --test-dir ${{github.workspace}}/build/besm-666

0 comments on commit c478557

Please sign in to comment.