ci: build the clawhdf5 read path for wasm32-unknown-unknown
The facade already builds for the browser target without mmap (and with it: memmap2 compiles there and File::open just fails, as std::fs does). Nothing needed gating; keep it that way with a ci-test.sh step, and install the target in the CI container. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
@@ -106,6 +106,14 @@ no_c_in_default_build() {
|
||||
}
|
||||
run_step "no C in the default build (core crates)" no_c_in_default_build
|
||||
|
||||
# The reader in the browser: the facade's read path must build for
|
||||
# wasm32-unknown-unknown (no mmap, no threads, no file system). Needs
|
||||
# `rustup target add wasm32-unknown-unknown`.
|
||||
run_step "wasm32 build (clawhdf5, no default features)" cargo build \
|
||||
-p clawhdf5 \
|
||||
--target wasm32-unknown-unknown \
|
||||
--no-default-features
|
||||
|
||||
# The workspace declares a minimum Rust version (rust-version in Cargo.toml);
|
||||
# check that it really builds there, so the README badge and the manifests
|
||||
# cannot drift from the truth. Separate target dir: a different toolchain
|
||||
|
||||
Reference in New Issue
Block a user