Select Git revision
ci.yml 9.56 KiB
name: HighFive_CI
concurrency:
group: ${{ github.workflow }}#${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- ci_test
- release/**
pull_request:
branches:
- master
- release/**
paths-ignore:
- '**.md'
- '**.rst'
- 'doc/**'
env:
HOMEBREW_NO_AUTO_UPDATE: 1 # for reproducibility, dont autoupdate
BUILD_TYPE: RelWithDebInfo
INSTALL_DIR: install
jobs:
# Job testing compiling on several Ubuntu systems + MPI
# =========================================================
#
# For 20.04: bare and activate Boost, OpenCV
# For latest: activate Boost, Eigen, OpenCV, with Ninja
#
# XTensor tests are run for conda/mamba and MacOS
Linux_MPI:
runs-on: ${{matrix.config.os}}
name: Linux_MPI (${{toJson(matrix.config)}})
strategy:
matrix:
include:
- config:
os: ubuntu-20.04
pkgs: ''
flags: '-DHIGHFIVE_USE_BOOST:Bool=OFF'
- config:
os: ubuntu-20.04
pkgs: 'libboost-all-dev libopencv-dev'
flags: '-DHIGHFIVE_USE_OPENCV:Bool=ON -GNinja'
- config:
os: ubuntu-latest
pkgs: 'libboost-all-dev libeigen3-dev libopencv-dev'
flags: '-DHIGHFIVE_USE_EIGEN:Bool=ON -DHIGHFIVE_USE_OPENCV:Bool=ON -GNinja'
- config:
os: ubuntu-20.04
pkgs: 'libboost-all-dev'
flags: '-DCMAKE_CXX_STANDARD=17'
- config:
os: ubuntu-22.04
flags: '-DHIGHFIVE_USE_BOOST=Off -DCMAKE_CXX_STANDARD=20'
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: "Setup MPI"
uses: mpi4py/setup-mpi@v1
with:
mpi: openmpi