Dolci/fixing errors #12
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: Install and test libsupermesh | |
on: | |
# Push to master or PR | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: "Build libsupermesh" | |
# The type of runner that the job will run on | |
runs-on: self-hosted | |
# The docker container to use. | |
container: | |
image: firedrakeproject/firedrake-env:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: mpi4py/setup-mpi@v1 | |
with: | |
mpi: openmpi | |
- name: CMake | |
run: | | |
cd build | |
cmake .. -DLIBSUPERMESH_AUTO_COMPILER_FLAGS=OFF \ | |
-DBUILD_SHARED_LIBS=ON -DMPI_C_COMPILER=mpicc \ | |
-DMPI_CXX_COMPILER=mpicxx -DMPI_Fortran_COMPILER=mpif90 \ | |
-DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx \ | |
-DCMAKE_Fortran_COMPILER=mpif90 \ | |
-DCMAKE_Fortran_FLAGS=-fallow-argument-mismatch | |
- name: Build | |
run: | | |
cd build | |
make | |
- name: Test | |
run: | | |
cd build | |
make test | |