Skip to content

Commit 8a40230

Browse files
committed
Add HDF5-Blosc2 to some Linux workflow
1 parent fcb00db commit 8a40230

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
git config user.email "tooling@tools.com"
11+
git config user.name "Tooling"
12+
13+
curl -sLo "$patch_path" "$patch_url"
14+
git clone -b "$version" https://github.com/Blosc/HDF5-Blosc2
15+
cd HDF5-Blosc2
16+
git am "$patch_path"
17+
18+
cmake . -B build -DCMAKE_INSTALL_PREFIX="/usr/local"
19+
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)