Skip to content

Commit

Permalink
ci:build: just one case as we now auto-build HDF5-MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 11, 2023
1 parent b100458 commit ece7815
Showing 1 changed file with 10 additions and 35 deletions.
45 changes: 10 additions & 35 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,31 @@ on:

jobs:

linux_mac:
linux:
timeout-minutes: 20

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
shared: [true, false]
mpi: [mpich, openmpi]
exclude:
- os: macos-latest
shared: true

runs-on: ${{ matrix.os}}
runs-on: ubuntu-latest

steps:

- name: prereqs (Linux)
if: runner.os == 'Linux'
run: sudo apt install --no-install-recommends ninja-build lib${{ matrix.mpi }}-dev

- name: prereqs (MacOS)
if: runner.os == 'macOS'
run: |
brew install ${{ matrix.mpi }} ninja
brew reinstall gcc
run: sudo apt install --no-install-recommends libopenmpi-dev

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Configure HDF5-MPI
run: >-
cmake
-GNinja
-S scripts -B scripts/build
--install-prefix ${{ runner.temp }}
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
run: cmake -B build --install-prefix ${{ runner.temp }}
working-directory: scripts

- name: Build/install HDF5
run: cmake --build scripts/build
run: cmake --build build
working-directory: scripts

- name: configure h5fortran
run: >-
cmake
--preset default
-GNinja
cmake --preset default
--install-prefix ${{ runner.temp }}
-DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
-DCMAKE_PREFIX_PATH=${{ runner.temp }}
- name: build h5fortran
Expand All @@ -70,11 +49,7 @@ jobs:
run: cmake --install build

- name: configure examples
run: >-
cmake
--preset default
-GNinja
-DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }}
run: cmake --preset default -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }}
working-directory: example

- name: build Examples
Expand Down

0 comments on commit ece7815

Please sign in to comment.