@@ -26,22 +26,13 @@ jobs:
26
26
name : Check Style
27
27
runs-on : ubuntu-latest
28
28
steps :
29
- - name : Checkout
30
- uses : actions/checkout@v1
29
+ - uses : actions/checkout@v3
31
30
32
- - name : Install Rust
33
- uses : actions-rs/toolchain@v1
31
+ - uses : dtolnay/rust-toolchain@stable
34
32
with :
35
- profile : minimal
36
- toolchain : stable
37
- override : true
38
33
components : rustfmt
39
34
40
- - name : cargo fmt --check
41
- uses : actions-rs/cargo@v1
42
- with :
43
- command : fmt
44
- args : --all -- --check
35
+ - run : cargo fmt --all --check
45
36
46
37
test :
47
38
name : Test ${{ matrix.rust }} on ${{ matrix.os }}
@@ -61,20 +52,14 @@ jobs:
61
52
runs-on : ${{ matrix.os }}
62
53
63
54
steps :
64
- - name : Checkout
65
- uses : actions/checkout@v1
55
+ - uses : actions/checkout@v3
66
56
67
57
- name : Install Rust (${{ matrix.rust }})
68
- uses : actions-rs/ toolchain@v1
58
+ uses : dtolnay/rust- toolchain@master
69
59
with :
70
- profile : minimal
71
60
toolchain : ${{ matrix.rust }}
72
- override : true
73
61
74
- - name : Test
75
- uses : actions-rs/cargo@v1
76
- with :
77
- command : test
62
+ - run : cargo test
78
63
79
64
msrv :
80
65
name : Check MSRV (${{ matrix.rust }})
@@ -90,80 +75,53 @@ jobs:
90
75
runs-on : ${{ matrix.os }}
91
76
92
77
steps :
93
- - name : Checkout
94
- uses : actions/checkout@v1
78
+ - uses : actions/checkout@v3
95
79
96
80
- name : Install Rust (${{ matrix.rust }})
97
- uses : actions-rs/ toolchain@v1
81
+ uses : dtolnay/rust- toolchain@master
98
82
with :
99
- profile : minimal
100
83
toolchain : ${{ matrix.rust }}
101
- override : true
102
84
103
- - name : Check
104
- uses : actions-rs/cargo@v1
105
- with :
106
- command : check
85
+ - run : cargo check
107
86
108
87
miri :
109
88
name : Test with Miri
110
89
needs : [style]
111
90
runs-on : ubuntu-latest
112
91
113
92
steps :
114
- - name : Checkout
115
- uses : actions/checkout@v1
93
+ - uses : actions/checkout@v3
116
94
117
- - name : Install Rust
118
- uses : actions-rs/toolchain@v1
95
+ - uses : dtolnay/rust-toolchain@nightly
119
96
with :
120
- profile : minimal
121
- toolchain : nightly
122
97
components : miri
123
- override : true
124
98
125
99
- name : Test
126
- # Can't enable tcp feature since Miri does not support the tokio runtime
127
- run : MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test
100
+ env :
101
+ # Can't enable tcp feature since Miri does not support the tokio runtime
102
+ MIRIFLAGS : " -Zmiri-disable-isolation"
103
+ run : cargo miri test
128
104
129
105
features :
130
106
name : features
131
107
needs : [style]
132
108
runs-on : ubuntu-latest
133
109
steps :
134
- - name : Checkout
135
- uses : actions/checkout@v1
110
+ - uses : actions/checkout@v3
136
111
137
- - name : Install Rust
138
- uses : actions-rs/toolchain@v1
139
- with :
140
- profile : minimal
141
- toolchain : nightly
142
- override : true
112
+ - uses : dtolnay/rust-toolchain@nightly
143
113
144
- - name : Install cargo-hack
145
- run : cargo install cargo-hack
114
+ - uses : taiki-e/install-action@cargo-hack
146
115
147
- - name : check --feature-powerset
148
- run : cargo hack check --feature-powerset --depth 2 -Z avoid-dev-deps
116
+ - run : cargo hack check --feature-powerset --depth 2 -Z avoid-dev-deps
149
117
150
118
doc :
151
119
name : Build docs
152
120
needs : [style, test]
153
121
runs-on : ubuntu-latest
154
122
steps :
155
- - name : Checkout
156
- uses : actions/checkout@v1
123
+ - uses : actions/checkout@v3
157
124
158
- - name : Install Rust
159
- uses : actions-rs/toolchain@v1
160
- with :
161
- profile : minimal
162
- toolchain : nightly
163
- override : true
125
+ - uses : dtolnay/rust-toolchain@nightly
164
126
165
- - name : cargo doc
166
- uses : actions-rs/cargo@v1
167
- with :
168
- command : rustdoc
169
- args : -- --cfg docsrs -D broken-intra-doc-links
127
+ - run : cargo rustdoc -- --cfg docsrs -D broken-intra-doc-links
0 commit comments