Skip to content

Commit 9e1ea0b

Browse files
committed
ci:macos:build need mpi
1 parent 6774035 commit 9e1ea0b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci_macos.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- name: install h5py
3535
run: pip install h5py
3636

37-
- run: brew install hdf5-mpi ninja libaec
37+
- name: Install HDF5-MPI
38+
run: brew install hdf5-mpi ninja open-mpi
3839

3940
- uses: actions/checkout@v2
4041

@@ -69,12 +70,14 @@ jobs:
6970

7071
- uses: actions/checkout@v2
7172

73+
- name: Install MPI
74+
run: brew install open-mpi
75+
7276
- name: Configure HDF5
7377
run: cmake -S scripts -B scripts/build -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }}
7478

7579
- name: Build/install HDF5
76-
run: cmake --build scripts/build --parallel || cmake --build scripts/build --parallel
77-
# double build to workaround HDF5 build bug--can't find MPI_C first time.
80+
run: cmake --build scripts/build --parallel
7881

7982
- run: cmake -B build -DCMAKE_INSTALL_PREFIX=${{ runner.temp }} -DBUILD_SHARED_LIBS:BOOL=${{ matrix.shared }} -DCMAKE_PREFIX_PATH=${{ runner.temp }}
8083
- run: cmake --build build --parallel

0 commit comments

Comments
 (0)