FindHDF5: correct HDF5-MPI #31
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: build | |
env: | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
on: | |
push: | |
paths: | |
- "scripts/CMakeLists.txt" | |
- "cmake/libraries.json" | |
- ".github/workflows/ci_build.yml" | |
jobs: | |
linux: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
steps: | |
- name: prereqs (Linux) | |
if: runner.os == 'Linux' | |
run: sudo apt install --no-install-recommends libopenmpi-dev | |
- uses: actions/checkout@v4 | |
- name: Configure HDF5-MPI | |
run: cmake -B build --install-prefix ${{ runner.temp }} | |
working-directory: scripts | |
- name: Build/install HDF5 | |
run: cmake --build build | |
working-directory: scripts | |
- name: configure h5fortran | |
run: >- | |
cmake --preset default | |
--install-prefix ${{ runner.temp }} | |
-DCMAKE_PREFIX_PATH=${{ runner.temp }} | |
- name: build h5fortran | |
run: cmake --build --preset default | |
- name: test h5fortran | |
run: ctest --preset default | |
- name: install h5fortran | |
run: cmake --install build | |
- name: configure examples | |
run: cmake --preset default -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }} | |
working-directory: example | |
- name: build Examples | |
run: cmake --build --preset default | |
working-directory: example | |
- name: Test Examples | |
run: ctest --preset default | |
working-directory: example |