-
Notifications
You must be signed in to change notification settings - Fork 29
33 lines (27 loc) · 953 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Rust Format and Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown
- run: cargo fmt -- --check
- run: cargo clippy --locked --all-targets -- -D warnings
# profiling & tracy features can't be both enabled at the same time in the demo. This is a limitation of the `profiling` crate.
- run: cargo clippy --locked --all-features -- -D warnings
- run: cargo clippy --locked --all-targets --features puffin -- -D warnings
- run: cargo clippy --locked --all-targets --features tracy -- -D warnings
- run: cargo check --locked --target wasm32-unknown-unknown
- run: cargo doc --no-deps
env:
RUSTDOCFLAGS: '-D warnings'