@@ -15,25 +15,19 @@ jobs:
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- uses : actions/checkout@master
18
- - uses : actions-rs/ toolchain@v1
18
+ - uses : dtolnay/rust- toolchain@master
19
19
with :
20
20
toolchain : stable
21
- profile : minimal
22
- override : true
23
21
- name : Check
24
- uses : actions-rs/cargo@v1
25
- with :
26
- command : check
27
- args : --workspace --all-features --all-targets
22
+ run : cargo check --workspace --all-features --all-targets
28
23
29
24
check-docs :
30
25
runs-on : ubuntu-latest
31
26
steps :
32
27
- uses : actions/checkout@master
33
- - uses : actions-rs/ toolchain@v1
28
+ - uses : dtolnay/rust- toolchain@master
34
29
with :
35
30
toolchain : stable
36
- profile : minimal
37
31
- name : cargo doc
38
32
working-directory : ${{ matrix.subcrate }}
39
33
env :
@@ -45,36 +39,27 @@ jobs:
45
39
steps :
46
40
- uses : actions/checkout@master
47
41
- name : " install Rust ${{ env.MSRV }}"
48
- uses : actions-rs/ toolchain@v1
42
+ uses : dtolnay/rust- toolchain@master
49
43
with :
50
44
toolchain : ${{ env.MSRV }}
51
- profile : minimal
52
45
- name : " install Rust nightly"
53
- uses : actions-rs/ toolchain@v1
46
+ uses : dtolnay/rust- toolchain@master
54
47
with :
55
48
toolchain : nightly
56
- profile : minimal
57
49
- name : Select minimal versions
58
- uses : actions-rs/cargo@v1
59
- with :
60
- command : update
61
- args : -Z minimal-versions
62
- toolchain : nightly
50
+ run : cargo update -Z minimal-versions
63
51
- name : Check
64
- uses : actions-rs/cargo@v1
65
- with :
66
- command : check
67
- args : --all --all-targets --all-features --locked
68
- toolchain : ${{ env.MSRV }}
52
+ run : |
53
+ rustup default ${{ env.MSRV }}
54
+ cargo check --all --all-targets --all-features --locked
69
55
70
56
cargo-hack :
71
57
runs-on : ubuntu-latest
72
58
steps :
73
59
- uses : actions/checkout@master
74
- - uses : actions-rs/ toolchain@v1
60
+ - uses : dtolnay/rust- toolchain@master
75
61
with :
76
62
toolchain : stable
77
- profile : minimal
78
63
- name : install cargo-hack
79
64
uses : taiki-e/install-action@cargo-hack
80
65
- name : cargo hack check
@@ -95,66 +80,49 @@ jobs:
95
80
steps :
96
81
- uses : actions/checkout@master
97
82
- name : " install Rust ${{ matrix.rust }}"
98
- uses : actions-rs/ toolchain@v1
83
+ uses : dtolnay/rust- toolchain@master
99
84
with :
100
85
toolchain : ${{ matrix.rust }}
101
- profile : minimal
102
- override : true
103
86
- name : Run tests
104
- uses : actions-rs/cargo@v1
105
- with :
106
- command : test
107
- args : --workspace --all-features
87
+ run : cargo test --workspace --all-features
108
88
109
89
test-msrv :
110
90
needs : check-msrv
111
91
runs-on : ubuntu-latest
112
92
steps :
113
93
- uses : actions/checkout@master
114
94
- name : " install Rust ${{ env.MSRV }}"
115
- uses : actions-rs/ toolchain@v1
95
+ uses : dtolnay/rust- toolchain@master
116
96
with :
117
97
toolchain : ${{ env.MSRV }}
118
- profile : minimal
119
98
- name : " install Rust nightly"
120
- uses : actions-rs/ toolchain@v1
99
+ uses : dtolnay/rust- toolchain@master
121
100
with :
122
101
toolchain : nightly
123
- profile : minimal
124
102
- name : Select minimal versions
125
- uses : actions-rs/cargo@v1
126
- with :
127
- command : update
128
- args : -Z minimal-versions
129
- toolchain : nightly
103
+ run : cargo update -Z minimal-versions
130
104
- name : test
131
- uses : actions-rs/cargo@v1
132
- with :
133
- command : check
134
- args : --workspace --all-features --locked
135
- toolchain : ${{ env.MSRV }}
105
+ run : |
106
+ rustup default ${{ env.MSRV }}
107
+ cargo check --workspace --all-features --locked
136
108
137
109
style :
138
110
needs : check-stable
139
111
runs-on : ubuntu-latest
140
112
steps :
141
113
- uses : actions/checkout@master
142
- - uses : actions-rs/ toolchain@v1
114
+ - uses : dtolnay/rust- toolchain@master
143
115
with :
144
116
toolchain : stable
145
117
components : rustfmt
146
- profile : minimal
147
118
- name : rustfmt
148
- uses : actions-rs/cargo@v1
149
- with :
150
- command : fmt
151
- args : --all -- --check
119
+ run : cargo fmt --all -- --check
152
120
153
121
deny-check :
154
122
name : cargo-deny check
155
123
runs-on : ubuntu-latest
156
124
steps :
157
- - uses : actions/checkout@v1
125
+ - uses : actions/checkout@v4
158
126
- uses : EmbarkStudios/cargo-deny-action@v1
159
127
with :
160
128
command : check
0 commit comments