From 15db00a170c6948f7bff5c7b514409a7e5136949 Mon Sep 17 00:00:00 2001 From: DanGould Date: Sat, 10 Feb 2024 12:55:18 -0500 Subject: [PATCH] Add wasm32 target CI build --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c51629a..1ea1863 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,36 @@ jobs: env: RUST_BACKTRACE: 1 + wasm_build: + name: Build wasm32 + runs-on: ubuntu-20.04 + steps: + - name: Checkout sources + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + + - name: Add wasm target + run: rustup target add wasm32-unknown-unknown + + - name: wasm32 build (debug; default features) + run: cargo build --target wasm32-unknown-unknown --lib + env: + RUST_BACKTRACE: 1 + + - name: wasm32 build (debug; all features) + run: cargo build --target wasm32-unknown-unknown --lib --all-features + env: + RUST_BACKTRACE: 1 + + - name: wasm32 build (debug; no default features) + run: cargo build --target wasm32-unknown-unknown --lib --no-default-features + env: + RUST_BACKTRACE: 1 + msrv: runs-on: ${{ matrix.os }} strategy: