From 914d150a6b0291aca53ff79a62b2e497e3e7c8b1 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Tue, 1 Dec 2020 21:00:47 +0000 Subject: [PATCH] CI: Build for WASM targets --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4c2d7b..c909a82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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