Skip to content

Commit

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

0 comments on commit aaaf0ae

Please sign in to comment.