@@ -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
@@ -228,18 +209,14 @@ jobs:
228
209
uses : dtolnay/rust-toolchain@stable
229
210
230
211
- name : Install cbindgen
231
- uses : actions-rs/ cargo@v1
212
+ uses : taiki-e/cache- cargo-install-action @v1
232
213
with :
233
- command : install
234
- args : cbindgen
214
+ tool : cbindgen
235
215
236
216
- name : Build FFI
237
- uses : actions-rs/ cargo@v1
217
+ run : cargo build --features client,http1,http2,ffi
238
218
env :
239
219
RUSTFLAGS : --cfg hyper_unstable_ffi
240
- with :
241
- command : build
242
- args : --features client,http1,http2,ffi
243
220
244
221
- name : Ensure that hyper.h is up to date
245
222
run : ./capi/gen_header.sh --verify
@@ -256,7 +233,4 @@ jobs:
256
233
uses : dtolnay/rust-toolchain@nightly
257
234
258
235
- name : cargo doc
259
- uses : actions-rs/cargo@v1
260
- with :
261
- command : rustdoc
262
- args : --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links
236
+ run : cargo rustdoc --features full,ffi -- --cfg docsrs --cfg hyper_unstable_ffi -D broken-intra-doc-links
0 commit comments