-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1001 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Rust
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: setup
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
target: wasm32-unknown-unknown
- name: fmt
run: |
cargo fmt --version
cargo fmt --all -- --check
- name: clippy
run: |
cargo clippy --version
cargo clippy --all-targets -- -D warnings
- name: machete
uses: bnjbvr/cargo-machete@main
- name: check
run: |
cargo check
- name: build
run: |
cargo --version --verbose
cargo build --all
cargo build --all --no-default-features
- name: test
run: |
cargo test --all --all-features