Skip to content

Commit d68bbd3

Browse files
committed
fin wasm module
1 parent 90524b4 commit d68bbd3

11 files changed

Lines changed: 2411 additions & 5 deletions

File tree

.github/workflows/build-wasm.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build Wasm
2+
3+
"on":
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-and-test:
14+
name: Build and test signer
15+
runs-on: ubuntu-latest
16+
defaults:
17+
run:
18+
working-directory: bbs
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Install stable Rust
25+
uses: dtolnay/rust-toolchain@stable
26+
with:
27+
components: rustfmt, clippy
28+
29+
- name: Install wasm-pack
30+
run: cargo install wasm-pack
31+
32+
33+
- name: Cache cargo registry and build artifacts
34+
uses: Swatinem/rust-cache@v2
35+
with:
36+
workspaces: |
37+
bbs_wasm -> target
38+
39+
# - name: Check formattingw
40+
# run: cargo fmt --all -- --check
41+
- name: Test
42+
run: cargo test
43+
44+
- name: Build
45+
run: wasm-pack build --target web
46+
47+

0 commit comments

Comments
 (0)