Skip to content

Commit

Permalink
Updated the action.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Oct 14, 2023
1 parent 6501830 commit 4a1185a
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/build-libraries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 4a1185a

Please sign in to comment.