Skip to content

Commit

Permalink
Add wasm32 target CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Feb 27, 2024
1 parent ccf3607 commit 15db00a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 15db00a

Please sign in to comment.