Skip to content

Commit 84f5030

Browse files
committed
Github action: build HDF5 using cmake
1 parent 204b802 commit 84f5030

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/hdf5_mpich.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,10 @@ jobs:
8181
curl -LO https://support.hdfgroup.org/releases/hdf5/v${VER_MAJOR}/v${VER_NOPATCH}/downloads/hdf5-${HDF5_VERSION}.tar.gz
8282
tar -zxf hdf5-${HDF5_VERSION}.tar.gz
8383
cd hdf5-${HDF5_VERSION}
84-
./configure --prefix=${HDF5_ROOT} \
85-
--silent \
86-
--enable-parallel \
87-
--enable-build-mode=production \
88-
--enable-unsupported \
89-
--enable-threadsafe \
90-
--disable-doxygen-doc \
91-
--disable-doxygen-man \
92-
--disable-doxygen-html \
93-
--disable-tests \
94-
--disable-fortran \
95-
--disable-cxx \
96-
CC=${MPICH_DIR}/bin/mpicc
97-
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
98-
make -s -j 8 distclean >> qout 2>&1
84+
CC=${MPICH_DIR}/bin/mpicc cmake ../hdf5-${HDF5_VERSION} \
85+
-D"CMAKE_INSTALL_PREFIX=${HDF5_ROOT}" \
86+
-D"HDF5_ENABLE_PARALLEL=ON"
87+
make -j 8 install > qout 2>&1
9988
- name: Dump config.log file if build HDF5 failed
10089
if: ${{ failure() }}
10190
run: |

0 commit comments

Comments
 (0)