Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build-wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Wasm

"on":
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build-and-test:
name: Build and test signer
runs-on: ubuntu-latest
defaults:
run:
working-directory: bbs

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install stable Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy

- name: Install wasm-pack
run: cargo install wasm-pack


- name: Cache cargo registry and build artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: |
bbs_wasm -> target

# - name: Check formattingw
# run: cargo fmt --all -- --check
- name: Test
run: cargo test

- name: Build
run: wasm-pack build --target web


Loading
Loading