From 774cc349361e23814664737607696154b3d9cf43 Mon Sep 17 00:00:00 2001 From: roee88 Date: Tue, 10 Aug 2021 20:31:30 +0300 Subject: [PATCH] Added workflow to check wasm32-wasi build Signed-off-by: roee88 --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e6baa9f..5f964fa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,3 +46,27 @@ jobs: uses: actions-rs/cargo@v1 with: command: test + wasm: + name: Check wasm32-wasi support with ${{ matrix.toolchain }} toolchain + runs-on: ubuntu-latest + strategy: + matrix: + toolchain: [stable, nightly] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + target: wasm32-wasi + toolchain: ${{ matrix.toolchain }} + override: true + + - name: cargo build + uses: actions-rs/cargo@v1 + with: + command: build + args: --release --no-default-features --target wasm32-wasi