Skip to content

Commit df2316f

Browse files
committed
Add CI workflow
Runs cargo fmt --check, clippy (-D warnings), and cargo test on every push/PR, plus a separate job verifying the wasm32v1-none release build.
1 parent 41bf78d commit df2316f

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: dtolnay/rust-toolchain@stable
16+
with:
17+
components: rustfmt, clippy
18+
19+
- uses: Swatinem/rust-cache@v2
20+
21+
- run: cargo fmt --check
22+
- run: cargo clippy --workspace --all-targets -- -D warnings
23+
- run: cargo test --workspace
24+
25+
wasm-build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: dtolnay/rust-toolchain@stable
31+
with:
32+
targets: wasm32v1-none
33+
34+
- uses: Swatinem/rust-cache@v2
35+
36+
- run: cargo build --target wasm32v1-none --release

0 commit comments

Comments
 (0)