Skip to content

Commit 8e58ce6

Browse files
committed
Github action: build HDF5 using cmake
1 parent 67f340b commit 8e58ce6

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/hdf5_mpich.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,12 @@ jobs:
8080
# curl -LO https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${VER_MAJOR}/hdf5-${VER_NOPATCH}/src/hdf5-${HDF5_VERSION}.tar.gz
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
83-
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
83+
mkdir build
84+
cd build
85+
CC=${MPICH_DIR}/bin/mpicc cmake ../hdf5-${HDF5_VERSION} \
86+
-D"CMAKE_INSTALL_PREFIX=${HDF5_ROOT}" \
87+
-D"HDF5_ENABLE_PARALLEL=ON"
88+
make -j 8 install > qout 2>&1
9989
- name: Dump config.log file if build HDF5 failed
10090
if: ${{ failure() }}
10191
run: |

0 commit comments

Comments
 (0)