diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2c71b4d..62a2f934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -32,7 +39,7 @@ jobs: with: toolchain: ${{ matrix.rust }} profile: minimal - target: wasm32-wasip1 + target: ${{ matrix.wasm32-wasip1 }} override: true - name: Install power tools @@ -43,7 +50,7 @@ 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 \ @@ -51,7 +58,7 @@ jobs: --exclude numcodecs-zfp \ --exclude numcodecs-zstd \ --feature-powerset --keep-going \ - --target wasm32-wasip1 + --target ${{ matrix.wasm32-wasip1 }} test: name: Test Suite @@ -71,7 +78,6 @@ jobs: with: toolchain: ${{ matrix.rust }} profile: minimal - target: wasm32-wasip1 override: true - name: Set up Python @@ -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 @@ -127,7 +138,7 @@ jobs: with: toolchain: ${{ matrix.rust }} profile: minimal - target: wasm32-wasip1 + target: ${{ matrix.wasm32-wasip1 }} components: clippy override: true @@ -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 \ @@ -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 \ @@ -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