Skip to content

Commit

Permalink
chore: add CI to check wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Nov 23, 2023
1 parent f86b45d commit d64af30
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,28 @@ 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@v3
- uses: actions-rs/toolchain@v1
with:
override: false
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: cargo build
uses: actions-rs/cargo@v1
with:
command: build
args: --no-default-features --features batch,circuit-params --target ${{ matrix.target }}

example:
name: Examples on ubuntu
runs-on: ubuntu-latest
Expand Down

0 comments on commit d64af30

Please sign in to comment.