Update catch2 and fix Mac CI #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Domain Decomposition Toolkit CI' | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build-on-ubuntu: | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/nextsimhub/nextsimdg-dev-env:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure | |
shell: bash | |
run: | | |
. /opt/spack-environment/activate.sh | |
cmake -G "Unix Makefiles" -Bbuild -S. | |
- name: Build | |
shell: bash | |
run: | | |
. /opt/spack-environment/activate.sh | |
cmake --build build --config Release | |
- name: Run unit tests | |
shell: bash | |
run: | | |
. /opt/spack-environment/activate.sh | |
cd build | |
ctest -V | |
build-on-macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
brew install netcdf | |
brew install netcdf-cxx | |
brew install boost | |
brew install cmake | |
brew install catch2 | |
brew install trilinos | |
- name: Configure | |
run: | | |
cmake -Bbuild -S. | |
- name: Build | |
run: | | |
cmake --build build --config Release | |
- name: Run unit tests | |
run: | | |
cd build | |
ctest -V |