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