Remove spatialindex 1.8.5 and build against external #20
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 with Ubuntu spatialindex" | |
# 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@v4 | |
- uses: mpi4py/setup-mpi@v1 | |
with: | |
mpi: openmpi | |
- name: Install spatialindex | |
shell: bash | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install libspatialindex-dev | |
- 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 | |
build_rtree: | |
name: "Build libsupermesh with Rtree spatialindex" | |
# 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@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: JDBetteridge/rtree | |
ref: JDBetteridge/include_headers | |
- name: Install Rtree | |
# In future replace with Rtree wheel | |
shell: bash | |
run: | | |
cd .. | |
python -m venv test | |
source test/bin/activate | |
cd rtree | |
ci/install_libspatialindex.bash | |
pip install dist/Rtree*.whl | |
- name: CMake | |
shell: bash | |
run: | | |
source ../test/bin/activate | |
cd build | |
cmake .. \ | |
-DLIBSUPERMESH_AUTO_COMPILER_FLAGS=OFF \ | |
-DBUILD_SHARED_LIBS=ON \ | |
-DMPI_C_COMPILER=$MPICH_DIR/mpicc \ | |
-DMPI_CXX_COMPILER=$MPICH_DIR/mpicxx \ | |
-DMPI_Fortran_COMPILER=$MPICH_DIR/mpif90 \ | |
-DCMAKE_C_COMPILER=$MPICH_DIR/mpicc \ | |
-DCMAKE_CXX_COMPILER=$MPICH_DIR/mpicxx \ | |
-DCMAKE_Fortran_COMPILER=$MPICH_DIR/mpif90 \ | |
-DCMAKE_Fortran_FLAGS=-fallow-argument-mismatch \ | |
-DMPIEXEC_EXECUTABLE=$MPICH_DIR/mpiexec | |
- name: Build | |
run: | | |
cd build | |
make | |
- name: Test | |
run: | | |
cd build | |
make test |