CI: Build for WASM targets

This commit is contained in:
Jack Grigg 2020-12-01 21:00:47 +00:00
parent 3bcfe7825f
commit 914d150a6b

View file

@ -24,6 +24,29 @@ jobs:
command: test
args: --verbose --release --all --all-features
build:
name: Build target ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-unknown-unknown
- wasm32-wasi
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --all-features
bitrot:
name: Bitrot check
runs-on: ubuntu-latest