Skip to content

Commit ea7f02d

Browse files
committed
ci: add explicit build cli/wasm step
1 parent 30e72f7 commit ea7f02d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ jobs:
2929
run: cargo doc --all-features --no-deps
3030
env:
3131
RUSTDOCFLAGS: --cfg docsrs
32+
build:
33+
name: Build
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v3
37+
- name: Install wasm-pack
38+
run: cargo install wasm-pack
39+
- name: Run cargo build (debug)
40+
run: cargo build --all-targets
41+
- name: Run cargo build (release)
42+
run: cargo build --all-targets --release
43+
- name: Build for WASM (debug)
44+
run: ./build.sh debug
45+
- name: Build for WASM (release)
46+
run: ./build.sh release
3247
test:
3348
name: Test
3449
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)