@@ -4,6 +4,7 @@ on: [push]
4
4
5
5
env :
6
6
CARGO_TERM_COLOR : always
7
+ RUSTFLAGS : " -Dwarnings"
7
8
8
9
jobs :
9
10
build :
@@ -16,41 +17,24 @@ jobs:
16
17
submodules : recursive
17
18
18
19
- name : Setup Rust
19
- uses : actions-rs/ toolchain@v1
20
+ uses : dtolnay/rust- toolchain@stable
20
21
with :
21
- profile : minimal
22
- toolchain : stable
23
22
target : wasm32-wasi
24
23
components : rustfmt, clippy
25
24
26
- - name : Build
27
- uses : actions-rs/cargo@v1
28
- with :
29
- command : build
30
- args : --release --all-features
31
-
32
- - name : Documentation
33
- uses : actions-rs/cargo@v1
25
+ - name : Run cargo-audit binary crate
26
+
34
27
with :
35
- command : doc
28
+ token : ${{ secrets.GITHUB_TOKEN }}
36
29
37
- - name : Install cargo-audit binary crate
38
- uses :
actions-rs/[email protected]
39
- with :
40
- crate : cargo-audit
41
- version : latest
42
- use-tool-cache : true
30
+ - name : Build
31
+ run : cargo build --release --all-features
43
32
44
- - name : Annotate commit with clippy warnings
45
- uses : actions-rs/clippy-check@v1
46
- with :
47
- token : ${{ secrets.GITHUB_TOKEN }}
48
- args : --all-features
33
+ - name : Documentation
34
+ run : cargo doc
49
35
50
- - name : Security audit
51
- uses : actions-rs/audit-check@v1
52
- with :
53
- token : ${{ secrets.GITHUB_TOKEN }}
36
+ - name : Run Clippy
37
+ run : cargo clippy --all-targets --all-features
54
38
55
39
release :
56
40
runs-on : ubuntu-latest
@@ -63,11 +47,10 @@ jobs:
63
47
submodules : recursive
64
48
65
49
- name : Setup Rust
66
- uses : actions-rs/ toolchain@v1
50
+ uses : dtolnay/rust- toolchain@stable
67
51
with :
68
- profile : minimal
69
- toolchain : stable
70
52
target : wasm32-wasi
53
+ components : rustfmt, clippy
71
54
72
55
- name : Run Release PR
73
56
0 commit comments