Skip to content

Commit

Permalink
chore(ci): add check that the wasm crate builds
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Mar 28, 2023
1 parent ebc8a36 commit ff2ec55
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

- 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

0 comments on commit ff2ec55

Please sign in to comment.