File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
15
15
test :
16
- name : Test ${{ matrix.rust }} on ${{ matrix.os }} (${{matrix.update }})
16
+ name : Test ${{ matrix.rust }} on ${{ matrix.os }} (${{ matrix.extras }})
17
17
runs-on : ${{ matrix.os }}
18
18
strategy :
19
19
matrix :
@@ -22,24 +22,23 @@ jobs:
22
22
os : ubuntu-20.04
23
23
- rust : 1.39.0
24
24
os : ubuntu-20.04
25
- update : true
25
+ extras : [update]
26
26
- rust : 1.39.0
27
27
os : macos-latest
28
28
- rust : 1.39.0
29
29
os : windows-latest
30
30
- rust : 1.39.0
31
31
os : windows-latest
32
- update : true
32
+ extras : [update]
33
33
- rust : stable
34
34
os : ubuntu-20.04
35
- update : true
35
+ extras : [update]
36
36
- rust : nightly
37
37
os : ubuntu-20.04
38
38
all_targets : true
39
39
- rust : nightly
40
40
os : ubuntu-20.04
41
- update : true
42
- all_targets : true
41
+ extras : [update, all_targets]
43
42
44
43
steps :
45
44
- name : Checkout
53
52
override : true
54
53
55
54
- name : Update Deps
56
- if : matrix.update
55
+ if : ${{ contains( matrix.extras, ' update') }}
57
56
uses : actions-rs/cargo@v1
58
57
with :
59
58
command : update
69
68
command : test
70
69
args : --features headers
71
70
72
- - name : Test all features
73
- if : matrix.all_targets
71
+ - name : Test all features/targets
72
+ if : ${{ contains( matrix.extras, ' all_targets') }}
74
73
uses : actions-rs/cargo@v1
75
74
with :
76
75
command : test
You can’t perform that action at this time.
0 commit comments