@@ -35,56 +35,20 @@ jobs:
35
35
uses : actions-rs/cargo@v1
36
36
with :
37
37
command : fmt
38
- args : --all -- --check
38
+ args : -- --check
39
39
40
- dep-tests :
41
- strategy :
42
- fail-fast : false
43
-
44
- name : dep-tests
45
- runs-on : ubuntu-18.04
46
-
47
- steps :
48
- - name : Checkout
49
- uses : actions/checkout@v1
50
-
51
- - name : rust-toolchain
52
- uses : actions-rs/toolchain@v1
53
- with :
54
- toolchain : 1.38.0-x86_64-unknown-linux-gnu
55
- override : true
56
- profile : default
57
-
58
- - name : ' `cargo fmt --all --manifest-path ./dep-tests/Cargo.toml -- --check`'
40
+ - name : ' `cargo fmt --manifest-path ./dep-tests/Cargo.toml -- --check`'
59
41
uses : actions-rs/cargo@v1
60
42
with :
61
43
command : fmt
62
- args : --all --manifest-path ./dep-tests/Cargo.toml -- --check
63
-
64
- - name : ' `cargo clippy --manifest-path ./dep-tests/Cargo.toml -- -D warnings`'
65
- uses : actions-rs/cargo@v1
66
- with :
67
- command : clippy
68
- args : --manifest-path ./dep-tests/Cargo.toml -- -D warnings
69
-
70
- - name : ' `cargo test --no-fail-fast --manifest-path ./dep-tests/Cargo.toml`'
71
- uses : actions-rs/cargo@v1
72
- with :
73
- command : test
74
- args : --no-fail-fast --manifest-path ./dep-tests/Cargo.toml
75
-
76
- - name : ' `cargo dep-tests --all-features -d 1`'
77
- uses : actions-rs/cargo@v1
78
- with :
79
- command : dep-tests
80
- args : --all-features -d 1
44
+ args : --manifest-path ./dep-tests/Cargo.toml -- --check
81
45
82
46
build :
83
47
strategy :
84
48
fail-fast : false
85
49
matrix :
86
50
toolchain :
87
- # `x86_64-pc-windows-msvc ` is tier 1 **for now**.
51
+ # `x86_64-pc-windows-gnu ` is tier 1 **for now**.
88
52
- 1.38.0-x86_64-pc-windows-msvc
89
53
- 1.38.0-x86_64-pc-windows-gnu
90
54
- 1.38.0-x86_64-apple-darwin
@@ -99,28 +63,40 @@ jobs:
99
63
- beta-x86_64-unknown-linux-gnu
100
64
include :
101
65
- toolchain : 1.38.0-x86_64-pc-windows-msvc
66
+ features : --no-default-features
102
67
os : windows-latest
103
68
- toolchain : 1.38.0-x86_64-pc-windows-gnu
69
+ features : --no-default-features
104
70
os : windows-latest
105
71
- toolchain : 1.38.0-x86_64-apple-darwin
72
+ features : --all-features
106
73
os : macOS-latest
107
74
- toolchain : 1.38.0-x86_64-unknown-linux-gnu
75
+ features : --all-features
108
76
os : ubuntu-18.04
109
77
- toolchain : stable-x86_64-pc-windows-msvc
78
+ features : --no-default-features
110
79
os : windows-latest
111
80
- toolchain : stable-x86_64-pc-windows-gnu
81
+ features : --no-default-features
112
82
os : windows-latest
113
83
- toolchain : stable-x86_64-apple-darwin
84
+ features : --all-features
114
85
os : macOS-latest
115
86
- toolchain : stable-x86_64-unknown-linux-gnu
87
+ features : --all-features
116
88
os : ubuntu-18.04
117
89
- toolchain : beta-x86_64-pc-windows-msvc
90
+ features : --no-default-features
118
91
os : windows-latest
119
92
- toolchain : beta-x86_64-pc-windows-gnu
93
+ features : --no-default-features
120
94
os : windows-latest
121
95
- toolchain : beta-x86_64-apple-darwin
96
+ features : --all-features
122
97
os : macOS-latest
123
98
- toolchain : beta-x86_64-unknown-linux-gnu
99
+ features : --all-features
124
100
os : ubuntu-18.04
125
101
126
102
name : ${{ matrix.toolchain }}
@@ -141,30 +117,38 @@ jobs:
141
117
override : true
142
118
profile : default
143
119
144
- - name : Determine features
145
- id : features
146
- run : |
147
- if ${{ matrix.os == 'windows-latest' }}; then
148
- echo '::set-output name=features::--no-default-features'
149
- else
150
- echo '::set-output name=features::--all-features'
151
- fi
152
- shell : bash
153
-
154
- - name : ' `cargo clippy`'
120
+ - name : ' `cargo clippy ${{ matrix.features }} -- -D warnings`'
155
121
uses : actions-rs/cargo@v1
156
122
with :
157
123
command : clippy
158
- args : ${{ steps.features.outputs .features }} -- -D warnings
124
+ args : ${{ matrix .features }} -- -D warnings
159
125
160
- - name : ' `cargo test`'
126
+ - name : ' `cargo test ${{ matrix.features }} --no-fail-fast `'
161
127
uses : actions-rs/cargo@v1
162
128
with :
163
129
command : test
164
- args : ${{ steps.features.outputs .features }} --no-fail-fast
130
+ args : ${{ matrix .features }} --no-fail-fast
165
131
166
132
- name : ' `cargo run --release`'
167
133
uses : actions-rs/cargo@v1
168
134
with :
169
135
command : run
170
- args : ${{ steps.features.outputs.features }} --release
136
+ args : ${{ matrix.features }} --release
137
+
138
+ - name : ' `cargo clippy ${{ matrix.features }} --manifest-path ./dep-tests/Cargo.toml -- -D warnings`'
139
+ uses : actions-rs/cargo@v1
140
+ with :
141
+ command : clippy
142
+ args : ${{ matrix.features }} --manifest-path ./dep-tests/Cargo.toml -- -D warnings
143
+
144
+ - name : ' `cargo test ${{ matrix.features }} --manifest-path ./dep-tests/Cargo.toml --no-fail-fast`'
145
+ uses : actions-rs/cargo@v1
146
+ with :
147
+ command : test
148
+ args : ${{ matrix.features }} --manifest-path ./dep-tests/Cargo.toml --no-fail-fast
149
+
150
+ - name : ' `cargo dep-tests --all-features -d 1`'
151
+ uses : actions-rs/cargo@v1
152
+ with :
153
+ command : dep-tests
154
+ args : --all-features -d 1
0 commit comments