diff --git a/.github/workflows/build-libraries.yaml b/.github/workflows/build-libraries.yaml index 1befeab..df3d6b6 100644 --- a/.github/workflows/build-libraries.yaml +++ b/.github/workflows/build-libraries.yaml @@ -28,10 +28,26 @@ jobs: - name: Install wget run: yum install -y wget + - name: Set up ZLIB + run: | + wget http://zlib.net/fossils/zlib-1.3.tar.gz -O zlib.tar.gz + tar -xvf zlib.tar.gz + cd zlib-1.3 + cmake -S . -B build + cmake --build build + + - name: Set up SZIP + run: | + git clone https://gitlab.dkrz.de/k202009/libaec + cd libaec + cmake -S . -B build + cmake --build build + - name: Set up HDF5 run: | wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_2.tar.gz -O bundle.tar.gz tar -xf bundle.tar.gz + cwd=$(pwd) cd hdf5-hdf5-1_12_2/ cmake -S . -B build \ -DBUILD_SHARED_LIBS=OFF \ @@ -41,7 +57,11 @@ jobs: -DHDF5_BUILD_CPP_LIB=ON \ -DHDF5_ENABLE_Z_LIB_SUPPORT=ON \ -DHDF5_ENABLE_SZIP_SUPPORT=ON \ - -DBUILD_TESTING=OFF + -DBUILD_TESTING=OFF \ + -DZLIB_INCLUDE_DIR=${cwd}/zlib-1.3 \ + -DZLIB_LIBRARY=${cwd}/zlib-1.3/build/src/libz.a \ + -DSZIP_INCLUDE_DIR=${cwd}/libaec/build/include \ + -DSZIP_LIBRARY=${cwd}/libaec/build/src/libsz.a cmake --build build cpack -G TGZ --config build/CPackConfig.cmake