Skip to content

Commit

Permalink
Use wasm32-wasi on MSRV 1.76
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Sep 25, 2024
1 parent 314aa12 commit 03a0077
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
matrix:
os: [ubuntu-latest]
rust: ["1.76", stable, nightly]
include:
- rust: "1.76"
wasm32-wasip1: wasm32-wasi
- rust: stable
wasm32-wasip1: wasm32-wasip1
- rust: nightly
wasm32-wasip1: wasm32-wasip1

steps:
- name: Checkout the Repository
Expand All @@ -32,7 +39,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
profile: minimal
target: wasm32-wasip1
target: ${{ matrix.wasm32-wasip1 }}
override: true

- name: Install power tools
Expand All @@ -43,15 +50,15 @@ jobs:
cargo hack check --all \
--feature-powerset --keep-going
- name: Check the powerset on wasm32-wasip1
- name: Check the powerset on ${{ matrix.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-wasip1
--target ${{ matrix.wasm32-wasip1 }}
test:
name: Test Suite
Expand All @@ -71,7 +78,6 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
profile: minimal
target: wasm32-wasip1
override: true

- name: Set up Python
Expand Down Expand Up @@ -117,6 +123,11 @@ jobs:
matrix:
os: [ubuntu-latest]
rust: ["1.76", stable]
include:
- rust: "1.76"
wasm32-wasip1: wasm32-wasi
- rust: stable
wasm32-wasip1: wasm32-wasip1

steps:
- name: Checkout the Repository
Expand All @@ -127,7 +138,7 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
profile: minimal
target: wasm32-wasip1
target: ${{ matrix.wasm32-wasip1 }}
components: clippy
override: true

Expand All @@ -148,7 +159,7 @@ jobs:
--feature-powerset --keep-going \
-- -D warnings -A unknown-lints
- name: Check the code style powerset on wasm32-wasip1
- name: Check the code style powerset on ${{ matrix.wasm32-wasip1 }}
if: ${{ matrix.rust == 'stable' }}
run: |
cargo hack clippy --all \
Expand All @@ -157,10 +168,10 @@ jobs:
--exclude numcodecs-zfp \
--exclude numcodecs-zstd \
--feature-powerset --keep-going \
--target wasm32-wasip1 \
--target ${{ matrix.wasm32-wasip1 }} \
-- -D warnings
- name: Check the code style powerset on wasm32-wasip1
- name: Check the code style powerset on ${{ matrix.wasm32-wasip1 }}
if: ${{ matrix.rust != 'stable' }}
run: |
cargo hack clippy --all \
Expand All @@ -169,5 +180,5 @@ jobs:
--exclude numcodecs-zfp \
--exclude numcodecs-zstd \
--feature-powerset --keep-going \
--target wasm32-wasip1 \
--target ${{ matrix.wasm32-wasip1 }} \
-- -D warnings -A unknown-lints

0 comments on commit 03a0077

Please sign in to comment.