Skip to content

Commit

Permalink
Upgrade to using wasm32-wasip1 in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Sep 25, 2024
1 parent e903353 commit 314aa12
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
profile: minimal
target: wasm32-wasi
target: wasm32-wasip1
override: true

- name: Install power tools
Expand All @@ -43,15 +43,15 @@ jobs:
cargo hack check --all \
--feature-powerset --keep-going
- name: Check the powerset on wasm32-wasi
- name: Check the powerset on wasm32-wasip1
run: |
cargo hack check --all \
--exclude numcodecs-python \
--exclude numcodecs-sz3 \
--exclude numcodecs-zfp \
--exclude numcodecs-zstd \
--feature-powerset --keep-going \
--target wasm32-wasi
--target wasm32-wasip1
test:
name: Test Suite
Expand All @@ -71,7 +71,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
profile: minimal
target: wasm32-wasi
target: wasm32-wasip1
override: true

- name: Set up Python
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
profile: minimal
target: wasm32-wasi
target: wasm32-wasip1
components: clippy
override: true

Expand All @@ -148,7 +148,7 @@ jobs:
--feature-powerset --keep-going \
-- -D warnings -A unknown-lints
- name: Check the code style powerset on wasm32-wasi
- name: Check the code style powerset on wasm32-wasip1
if: ${{ matrix.rust == 'stable' }}
run: |
cargo hack clippy --all \
Expand All @@ -157,10 +157,10 @@ jobs:
--exclude numcodecs-zfp \
--exclude numcodecs-zstd \
--feature-powerset --keep-going \
--target wasm32-wasi \
--target wasm32-wasip1 \
-- -D warnings
- name: Check the code style powerset on wasm32-wasi
- name: Check the code style powerset on wasm32-wasip1
if: ${{ matrix.rust != 'stable' }}
run: |
cargo hack clippy --all \
Expand All @@ -169,5 +169,5 @@ jobs:
--exclude numcodecs-zfp \
--exclude numcodecs-zstd \
--feature-powerset --keep-going \
--target wasm32-wasi \
--target wasm32-wasip1 \
-- -D warnings -A unknown-lints
2 changes: 1 addition & 1 deletion crates/numcodecs-wasm-guest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# numcodecs-wasm-guest

wasm32-wasi guest-side bindings for the [`numcodecs`] API, which allows you to export one [`StaticCodec`] from a WASM component.
wasm32 guest-side bindings for the [`numcodecs`] API, which allows you to export one [`StaticCodec`] from a WASM component.

[`numcodecs`]: https://docs.rs/numcodecs/0.1/numcodecs/
[`StaticCodec`]: https://docs.rs/numcodecs/latest/numcodecs/trait.StaticCodec.html
Expand Down
4 changes: 2 additions & 2 deletions crates/numcodecs-wasm-guest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
//! [Rust Doc Main]: https://img.shields.io/badge/docs-main-blue
//! [docs]: https://juntyr.github.io/numcodecs-rs/numcodecs_wasm_guest
//!
//! wasm32-wasi guest-side bindings for the [`numcodecs`] API, which allows you
//! to export one [`StaticCodec`] from a WASM component.
//! wasm32 guest-side bindings for the [`numcodecs`] API, which allows you to
//! export one [`StaticCodec`] from a WASM component.

// Required in docs and the [`export_codec`] macro
#[doc(hidden)]
Expand Down

0 comments on commit 314aa12

Please sign in to comment.