add find_hdf5 option (default true) #19
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: ci_fpm | |
on: | |
push: | |
paths: | |
- "fpm.toml" | |
- ".github/workflows/ci_fpm.yml" | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
env: | |
FPM_FFLAGS: "-I/usr/include/hdf5/openmpi -I/usr/include/x86_64-linux-gnu/openmpi -I/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15/openmpi/" | |
FPM_LDFLAGS: -L/usr/lib/x86_64-linux-gnu/hdf5/openmpi | |
steps: | |
- uses: fortran-lang/setup-fpm@v4 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: install hdf5 | |
run: | | |
sudo apt update | |
sudo apt install --no-install-recommends libhdf5-openmpi-dev libopenmpi-dev openmpi-bin | |
- uses: actions/checkout@v3 | |
- run: fpm build | |
env: | |
FPM_FFLAGS: -Dh5fortran_HAVE_PARALLEL | |
- run: fpm test |