@@ -80,17 +80,11 @@ jobs:
80
80
toolchain : ${{ matrix.rust }}
81
81
82
82
- name : Test
83
- uses : actions-rs/cargo@v1
84
- with :
85
- command : test
86
- args : ${{ matrix.features }}
83
+ run : cargo test ${{ matrix.features }}
87
84
88
85
- name : Test all benches
89
86
if : matrix.benches
90
- uses : actions-rs/cargo@v1
91
- with :
92
- command : test
93
- args : --benches ${{ matrix.features }}
87
+ run : cargo test --benches ${{ matrix.features }}
94
88
95
89
msrv :
96
90
name : Check MSRV (${{ matrix.rust }})
@@ -115,10 +109,7 @@ jobs:
115
109
toolchain : ${{ matrix.rust }}
116
110
117
111
- name : Check
118
- uses : actions-rs/cargo@v1
119
- with :
120
- command : check
121
- args : --features full
112
+ run : cargo check --features full
122
113
123
114
miri :
124
115
name : Test with Miri
@@ -150,7 +141,7 @@ jobs:
150
141
uses : dtolnay/rust-toolchain@stable
151
142
152
143
- name : Install cargo-hack
153
- run : cargo install cargo-hack
144
+ uses : taiki-e/ install-action@ cargo-hack
154
145
155
146
- name : check --feature-powerset
156
147
run : cargo hack --no-dev-deps check --feature-powerset --depth 2 --skip ffi
@@ -176,10 +167,7 @@ jobs:
176
167
toolchain : ${{ matrix.rust }}
177
168
178
169
- name : Check
179
- uses : actions-rs/cargo@v1
180
- with :
181
- command : check
182
- args : --features full,backports,deprecated
170
+ run : cargo check --features full,backports,deprecated
183
171
184
172
ffi :
185
173
name : Test C API (FFI)
@@ -193,29 +181,22 @@ jobs:
193
181
uses : dtolnay/rust-toolchain@stable
194
182
195
183
- name : Install cbindgen
196
- uses : actions-rs/ cargo@v1
184
+ uses : taiki-e/cache- cargo-install-action @v1
197
185
with :
198
- command : install
199
- args : cbindgen
186
+ tool : cbindgen
200
187
201
188
- name : Build FFI
202
- uses : actions-rs/ cargo@v1
189
+ run : cargo rustc --features client,http1,http2,ffi --crate-type cdylib
203
190
env :
204
191
RUSTFLAGS : --cfg hyper_unstable_ffi
205
- with :
206
- command : rustc
207
- args : --features client,http1,http2,ffi --crate-type cdylib
208
192
209
193
- name : Make Examples
210
194
run : cd capi/examples && make client
211
195
212
196
- name : Run FFI unit tests
213
- uses : actions-rs/ cargo@v1
197
+ run : cargo test --features full,ffi --lib
214
198
env :
215
199
RUSTFLAGS : --cfg hyper_unstable_ffi
216
- with :
217
- command : test
218
- args : --features full,ffi --lib
219
200
220
201
ffi-header :
221
202
name : Verify hyper.h is up to date
@@ -230,18 +211,14 @@ jobs:
230
211
toolchain : ${{ matrix.rust }}
231
212
232
213
- name : Install cbindgen
233
- uses : actions-rs/ cargo@v1
214
+ uses : taiki-e/cache- cargo-install-action @v1
234
215
with :
235
- command : install
236
- args : cbindgen
216
+ tool : cbindgen
237
217
238
218
- name : Build FFI
239
- uses : actions-rs/ cargo@v1
219
+ run : cargo build --features client,http1,http2,ffi
240
220
env :
241
221
RUSTFLAGS : --cfg hyper_unstable_ffi
242
- with :
243
- command : build
244
- args : --features client,http1,http2,ffi
245
222
246
223
- name : Ensure that hyper.h is up to date
247
224
run : ./capi/gen_header.sh --verify
@@ -258,7 +235,4 @@ jobs:
258
235
uses : dtolnay/rust-toolchain@nightly
259
236
260
237
- name : cargo doc
261
- uses : actions-rs/cargo@v1
262
- with :
263
- command : rustdoc
264
- args : --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links
238
+ run : cargo rustdoc --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links
0 commit comments