Skip to content

Make HDF5 optional under CMake #247

Make HDF5 optional under CMake

Make HDF5 optional under CMake #247

Workflow file for this run

name: ci
on:
push:
paths:
- ".github/workflows/ci.yml"
- "fpm.toml"
- "**.f90"
pull_request:
paths:
- ".github/workflows/ci.yml"
- "fpm.toml"
- "**.f90"
env:
FPM_FFLAGS: -I/usr/include/hdf5/serial
FPM_LDFLAGS: -L/usr/lib/x86_64-linux-gnu/hdf5/serial
jobs:
gnu-fpm-debug:
name: Build and test in debug mode
runs-on: ubuntu-latest
steps:
- uses: fortran-lang/setup-fpm@v4
with:
fpm-version: "v0.6.0"
- name: Install HDF5
run: |
sudo apt update
sudo apt install --no-install-recommends libhdf5-dev
- uses: actions/checkout@v2
- name: Compile
run: fpm build --profile debug
- name: Test
run: fpm test --profile debug
gnu-fpm-release:
name: Build and test in release mode
runs-on: ubuntu-latest
steps:
- uses: fortran-lang/setup-fpm@v4
with:
fpm-version: "v0.6.0"
- name: Install HDF5
run: |
sudo apt update
sudo apt install --no-install-recommends libhdf5-dev
- uses: actions/checkout@v2
- name: Compile
run: fpm build --profile release
- name: Test
run: fpm test --profile release