From 6af45517064a1f2b30859d80433df5358cbd399b Mon Sep 17 00:00:00 2001 From: Caleb Schoepp Date: Tue, 28 May 2024 14:21:03 -0600 Subject: [PATCH] Add regression test to CI for WASI support Signed-off-by: Caleb Schoepp --- .github/workflows/CI.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d309bae..6a8a81a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -148,15 +148,18 @@ jobs: - name: Run doctests run: cargo test --doc --workspace --all-features - test-build-wasm: - name: build tests (wasm) + test-build-across-targets: + name: build tests (${{ matrix.target }}) needs: check + strategy: + matrix: + target: [wasm32-unknown-unknown, wasm32-wasi] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: - target: wasm32-unknown-unknown + target: ${{ matrix.target }} - name: build all tests run: cargo test --no-run --all-features @@ -169,7 +172,7 @@ jobs: - style - cargo-hack - check-msrv - - test-build-wasm + - test-build-across-targets - test steps: - run: exit 0