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 10, 2024
1 parent 118e402 commit 9ef3749
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@ 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@master
with:
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 9ef3749

Please sign in to comment.