Update catch2 and fix Mac CI #55
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: Remove existing build | |
shell: bash | |
run: | | |
rm -rf /decomp | |
- 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 cmake | |
brew install catch2 | |
brew install boost | |
brew install hdf5-mpi | |
brew install pnetcdf | |
git clone https://github.com/trilinos/Trilinos.git | |
cd Trilinos | |
cmake \ | |
-DTPL_ENABLE_MPI:BOOL=ON \ | |
-DTrilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \ | |
-DTrilinos_ENABLE_Zoltan:BOOL=ON \ | |
-DTrilinos_ENABLE_Fortran:BOOL=OFF \ | |
-DZoltan_ENABLE_EXAMPLES:BOOL=OFF \ | |
-DZoltan_ENABLE_TESTS:BOOL=OFF \ | |
-DBUILD_SHARED_LIBS=ON \ | |
-Bbuild -S. | |
sudo cmake --build build --config Release --target install | |
cd .. | |
git clone -b v4.9.2 https://github.com/Unidata/netcdf-c.git | |
cd netcdf-c | |
cmake \ | |
-DENABLE_PNETCDF=ON \ | |
-DCMAKE_C_COMPILER=mpicc \ | |
-DCMAKE_CXX_COMPILER=mpicxx \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DENABLE_TESTS=OFF \ | |
-DENABLE_PARALLEL_TESTS=OFF \ | |
-Bbuild -S. | |
sudo cmake --build build --config Release --target install | |
- name: Configure | |
run: | | |
cmake -Bbuild -S. | |
- name: Build | |
run: | | |
cmake --build build --config Release | |
- name: Run unit tests | |
run: | | |
cd build | |
ctest -V |