@@ -23,36 +23,26 @@ jobs:
23
23
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
24
24
25
25
- name : Install Rust Toolchain
26
- uses : actions-rs/ toolchain@v1
26
+ uses : dtolnay/rust- toolchain@master
27
27
with :
28
- profile : minimal
29
28
toolchain : ${{ matrix.toolchain }}
30
- override : true
31
29
components : rustfmt, clippy
32
30
33
31
- name : Check Code Format
34
- uses : actions-rs/cargo@v1
35
- with :
36
- command : fmt
37
- args : --all -- --check
32
+ run : cargo fmt --all -- --check
33
+ shell : bash
38
34
39
35
- name : Code Lint
40
- uses : actions-rs/cargo@v1
41
- with :
42
- command : clippy
43
- args : --all-targets --all-features --workspace -- -D warnings
36
+ run : cargo clippy --all-targets --all-features --workspace -- -D warnings
37
+ shell : bash
44
38
45
39
- name : Code Lint Without Default Features
46
- uses : actions-rs/cargo@v1
47
- with :
48
- command : clippy
49
- args : --no-default-features --workspace -- -D warnings
40
+ run : cargo clippy --no-default-features --workspace -- -D warnings
41
+ shell : bash
50
42
51
43
- name : Test
52
- uses : actions-rs/cargo@v1
53
- with :
54
- command : test
55
- args : --all-features --workspace
44
+ run : cargo test --all-features --workspace
45
+ shell : bash
56
46
57
47
build-no-std :
58
48
name : Build no_std
@@ -62,18 +52,13 @@ jobs:
62
52
uses : actions/checkout@v3
63
53
64
54
- name : Install Rust Toolchain
65
- uses : actions-rs/ toolchain@v1
55
+ uses : dtolnay/rust- toolchain@stable
66
56
with :
67
- profile : minimal
68
- toolchain : stable
69
- override : true
70
- target : thumbv6m-none-eabi
57
+ targets : thumbv6m-none-eabi
71
58
72
59
- name : Build
73
- uses : actions-rs/cargo@v1
74
- with :
75
- command : build
76
- args : --no-default-features --workspace --target thumbv6m-none-eabi
60
+ run : cargo build --no-default-features --workspace --target thumbv6m-none-eabi
61
+ shell : bash
77
62
78
63
msrv :
79
64
name : MSRV
87
72
MSRV=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "multihash") | .rust_version')
88
73
echo "MSRV=$MSRV" >> $GITHUB_ENV
89
74
90
- - uses : dtolnay/rust-toolchain@v1
75
+ - uses : dtolnay/rust-toolchain@master
91
76
with :
92
77
toolchain : ${{ env.MSRV }}
93
78
@@ -119,22 +104,15 @@ jobs:
119
104
uses : actions/checkout@v3
120
105
121
106
- name : Install Rust Toolchain
122
- uses : actions-rs/toolchain@v1
123
- with :
124
- profile : minimal
125
- toolchain : stable
107
+ uses : dtolnay/rust-toolchain@stable
126
108
127
109
- name : Install cargo-deny
128
- uses : actions-rs/cargo@v1
129
- with :
130
- command : install
131
- args : cargo-deny
110
+ run : cargo install cargo-deny
111
+ shell : bash
132
112
133
113
- name : Cargo Deny - Check
134
- uses : actions-rs/cargo@v1
135
- with :
136
- command : deny
137
- args : check
114
+ run : cargo deny check
115
+ shell : bash
138
116
139
117
semver-checks :
140
118
runs-on : ubuntu-latest
0 commit comments