ci: install hdf5-tools for the h5rs interop tests
The clawhdf5-tools interop tests compare h5rs with h5ls, h5stat, h5dump and h5diff, and CLAWHDF5_REQUIRE_INTEROP=1 turns a missing tool into a failure. Also hold clawhdf5-tools to the no-C-in-the-default-build check. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
@@ -31,7 +31,9 @@ jobs:
|
|||||||
# cmake builds libz-ng-sys for the opt-in `fast-deflate` (zlib-ng)
|
# cmake builds libz-ng-sys for the opt-in `fast-deflate` (zlib-ng)
|
||||||
# steps in ci-test.sh; rust:latest does not ship it. The default
|
# steps in ci-test.sh; rust:latest does not ship it. The default
|
||||||
# build (pure-Rust zlib-rs) does not need it.
|
# build (pure-Rust zlib-rs) does not need it.
|
||||||
apt-get install -y --no-install-recommends python3 python3-venv cmake
|
# hdf5-tools: h5ls/h5stat/h5dump/h5diff, which the h5rs
|
||||||
|
# (clawhdf5-tools) interop tests compare against.
|
||||||
|
apt-get install -y --no-install-recommends python3 python3-venv cmake hdf5-tools
|
||||||
python3 -m venv /opt/interop
|
python3 -m venv /opt/interop
|
||||||
/opt/interop/bin/pip install --no-cache-dir h5py numpy netCDF4 xarray hdf5plugin
|
/opt/interop/bin/pip install --no-cache-dir h5py numpy netCDF4 xarray hdf5plugin
|
||||||
echo "/opt/interop/bin" >> "$GITHUB_PATH"
|
echo "/opt/interop/bin" >> "$GITHUB_PATH"
|
||||||
|
|||||||
+2
-1
@@ -92,7 +92,8 @@ run_step "cargo clippy (fast-deflate / zlib-ng)" cargo clippy \
|
|||||||
no_c_in_default_build() {
|
no_c_in_default_build() {
|
||||||
local crate found=0
|
local crate found=0
|
||||||
for crate in clawhdf5-format clawhdf5-io clawhdf5-filters clawhdf5 \
|
for crate in clawhdf5-format clawhdf5-io clawhdf5-filters clawhdf5 \
|
||||||
clawhdf5-agent clawhdf5-ann clawhdf5-accel clawhdf5-netcdf4 clawhdf5-cli; do
|
clawhdf5-agent clawhdf5-ann clawhdf5-accel clawhdf5-netcdf4 clawhdf5-cli \
|
||||||
|
clawhdf5-tools; do
|
||||||
local c_deps
|
local c_deps
|
||||||
c_deps=$(cargo tree -q -p "$crate" -e normal,build --prefix none \
|
c_deps=$(cargo tree -q -p "$crate" -e normal,build --prefix none \
|
||||||
| grep -E '^([a-z0-9_-]+-sys|cc|cmake) v' | sort -u)
|
| grep -E '^([a-z0-9_-]+-sys|cc|cmake) v' | sort -u)
|
||||||
|
|||||||
Reference in New Issue
Block a user