17
17
test :
18
18
strategy :
19
19
matrix :
20
- rust :
20
+ toolchain :
21
21
- stable
22
22
- beta
23
23
- nightly
@@ -35,70 +35,33 @@ jobs:
35
35
persist-credentials : false
36
36
37
37
- name : Install toolchain
38
- uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
38
+ uses : dtolnay/rust- toolchain@master
39
39
with :
40
- profile : minimal
41
- toolchain : ${{ matrix.rust }}
42
- override : true
40
+ toolchain : ${{ matrix.toolchain }}
43
41
44
42
- name : Test debug-mode, default features
45
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
46
- with :
47
- command : test
43
+ run : cargo test
48
44
49
45
- name : Test debug-mode, all features
50
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
51
- with :
52
- command : test
53
- args : --features serde
46
+ run : cargo test --all-features
54
47
55
48
- name : Test debug-mode, no default features
56
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
57
- with :
58
- command : test
59
- args : --no-default-features
49
+ run : cargo test --no-default-features
60
50
61
- - name : Test debug-mode, alloc feature
62
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
63
- with :
64
- command : test
65
- args : --no-default-features --features alloc --tests
66
-
67
- - name : Test debug-mode, experimental feature
68
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
69
- with :
70
- command : test
71
- args : --features experimental
51
+ - name : Test debug-mode, no-default + alloc feature
52
+ run : cargo test --no-default-features --features alloc --tests
72
53
73
54
- name : Test release-mode, default features
74
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
75
- with :
76
- command : test
77
- args : --release
55
+ run : cargo test --release
78
56
79
57
- name : Test release-mode, all features
80
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
81
- with :
82
- command : test
83
- args : --release --features serde
58
+ run : cargo test --release --all-features
84
59
85
60
- name : Test release-mode, no default features
86
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
87
- with :
88
- command : test
89
- args : --release --no-default-features
61
+ run : cargo test --release --no-default-features
90
62
91
- - name : Test release-mode, alloc feature
92
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
93
- with :
94
- command : test
95
- args : --release --no-default-features --features alloc --tests
96
-
97
- - name : Test release-mode, experimental feature
98
- uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
99
- with :
100
- command : test
101
- args : --release --features experimental
63
+ - name : Test release-mode, no-default + alloc feature
64
+ run : cargo test --release --no-default-features --features alloc --tests
102
65
103
66
sanitizers :
104
67
name : Tests w. sanitizers
@@ -110,11 +73,10 @@ jobs:
110
73
persist-credentials : false
111
74
112
75
- name : Install toolchain
113
- uses : actions-rs/ toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
76
+ uses : dtolnay/rust- toolchain@master
114
77
with :
115
78
toolchain : nightly
116
- target : x86_64-unknown-linux-gnu
117
- override : true
79
+ targets : x86_64-unknown-linux-gnu
118
80
119
81
# Release (LeakSanitizer is enabled by default with AddressSanitizer for x86_64 Linux builds)
120
82
# https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer
@@ -126,24 +88,19 @@ jobs:
126
88
runs-on : ubuntu-latest
127
89
strategy :
128
90
matrix :
129
- rust :
91
+ toolchain :
130
92
- stable
131
93
- nightly
132
94
steps :
133
95
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
134
96
with :
135
97
persist-credentials : false
136
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
137
- with :
138
- profile : minimal
139
- toolchain : ${{ matrix.rust }}
140
- target : thumbv7em-none-eabi
141
- override : true
142
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
98
+
99
+ - uses : houseabsolute/actions-rust-cross@ad283b2fc65ad1f3a04fb8bf8b2b829aad4a9318
143
100
with :
144
- use-cross : true
145
101
command : build
146
- args : --release --no-default-features --target thumbv7em-none-eabi
102
+ target : thumbv7em-none-eabi
103
+ args : " --release --no-default-features"
147
104
148
105
cross_compilation :
149
106
name : Linux/ARM - Release tests
@@ -158,16 +115,12 @@ jobs:
158
115
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
159
116
with :
160
117
persist-credentials : false
161
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
162
- with :
163
- toolchain : stable
164
- target : ${{ matrix.arch }}
165
- override : true
166
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
118
+
119
+ - uses : houseabsolute/actions-rust-cross@ad283b2fc65ad1f3a04fb8bf8b2b829aad4a9318
167
120
with :
168
- use-cross : true
169
121
command : test
170
- args : --release --target ${{ matrix.arch }}
122
+ target : ${{ matrix.arch }}
123
+ args : " --release"
171
124
172
125
# https://rustwasm.github.io/docs/book/reference/add-wasm-support-to-crate.html#maintaining-ongoing-support-for-webassembly
173
126
web_assembly :
@@ -181,15 +134,13 @@ jobs:
181
134
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
182
135
with :
183
136
persist-credentials : false
184
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
137
+
138
+ - uses : dtolnay/rust-toolchain@master
185
139
with :
186
140
toolchain : stable
187
- target : ${{ matrix.arch }}
188
- override : true
189
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
190
- with :
191
- command : check
192
- args : --no-default-features --target ${{ matrix.arch }}
141
+ targets : ${{ matrix.arch }}
142
+
143
+ - run : cargo check --no-default-features --target ${{ matrix.arch }}
193
144
194
145
docs :
195
146
name : Build documentation
@@ -198,14 +149,10 @@ jobs:
198
149
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
199
150
with :
200
151
persist-credentials : false
201
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
202
- with :
203
- toolchain : stable
204
- override : true
205
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
206
- with :
207
- command : doc
208
- args : --no-deps --all-features
152
+
153
+ - uses : dtolnay/rust-toolchain@stable
154
+
155
+ - run : cargo doc --no-deps --all-features
209
156
210
157
benches :
211
158
name : Build and check benchmarks
@@ -214,11 +161,7 @@ jobs:
214
161
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
215
162
with :
216
163
persist-credentials : false
217
- - uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af
218
- with :
219
- toolchain : stable
220
- override : true
221
- - uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505
222
- with :
223
- command : test
224
- args : --benches
164
+
165
+ - uses : dtolnay/rust-toolchain@stable
166
+
167
+ - run : cargo test --benches
0 commit comments