Add wasm build step to CI

This commit is contained in:
Ethan Frey 2022-10-11 10:29:48 +02:00
parent 751fc22be8
commit 7b7b230c5b

View File

@ -110,6 +110,32 @@ jobs:
with:
command: build
args: --manifest-path=no_std/no_std_test/Cargo.toml ${{matrix.flags}}
wasm:
name: Check Wasm build
runs-on: ubuntu-latest
strategy:
matrix:
flags:
- ""
- "--no-default-features"
- "--features wasm-bindgen"
- "--no-default-features --features wasm-bindgen"
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_MSRV }}
override: true
target: wasm32-unknown-unknown
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --target wasm32-unknown-unknown ${{matrix.flags}}
rustfmt:
name: Check Formatting
runs-on: windows-latest