From aaaf0ae85f8a19b4ab8731a5b07f94b2b1a1874b Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Tue, 28 Mar 2023 15:08:19 +0100 Subject: [PATCH] chore(ci): add check that the wasm crate builds (#1050) --- .github/workflows/wasm.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/wasm.yml diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 00000000000..938fa0aa181 --- /dev/null +++ b/.github/workflows/wasm.yml @@ -0,0 +1,29 @@ +name: Wasm + +on: [push, pull_request] + +# This will cancel previous runs when a branch or PR is updated +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + name: Build Wasm + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Setup rust toolchain + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.66.0 + + - name: Install wasm-pack + run: cargo install wasm-pack + + - name: Build wasm crate + working-directory: ./crates/wasm + run: ./build-wasm