Skip to content

Commit 2b977a6

Browse files
committed
Add HDF5-Blosc2 to some Linux workflow
1 parent fcb00db commit 2b977a6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
set -eu -o pipefail
4+
cd /opt
5+
6+
version="v2.0.0"
7+
patch_url="https://github.com/franzpoeschel/HDF5-Blosc2/commit/55b1feea7bf18a539dfbe4413a920bc9570aa0c6.diff"
8+
patch_path="$(pwd)/hdf5_blosc2_cmake_fixes.diff"
9+
10+
curl -sLo "$patch_path" "$patch_url"
11+
git clone -b "$version" https://github.com/Blosc/HDF5-Blosc2
12+
cd HDF5-Blosc2
13+
git am "$patch_path"
14+
15+
cmake . -B build -DCMAKE_INSTALL_PREFIX="/usr/local"
16+
cmake --build build --parallel 4 --target install

.github/workflows/linux.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ jobs:
241241
sudo ln -s "$(which cmake)" /usr/bin/cmake
242242
eval $(spack env activate --sh .github/ci/spack-envs/gcc12_py36_ompi_h5_ad2/)
243243
spack install
244+
./.github/workflows/dependencies/install_hdf5_blosc2
245+
# the HDF5 Blosc2 plugin exports no configuration files
246+
# for build systems, so we will need to link it manually
247+
export LDFLAGS="-lblosc2_filter $LDFLAGS"
244248
245249
share/openPMD/download_samples.sh build
246250
cmake -S . -B build \

0 commit comments

Comments
 (0)