9
9
env :
10
10
RUST_BACKTRACE : 1
11
11
RUSTFLAGS : -Dwarnings
12
+ RUST_NIGHTLY : nightly-2024-02-03
12
13
13
14
14
15
jobs :
18
19
strategy :
19
20
matrix :
20
21
os : [ubuntu-latest, macOS-latest]
21
- rust : [nightly , beta, stable]
22
+ rust : [$RUST_NIGHTLY , beta, stable]
22
23
23
24
steps :
24
25
- name : Checkout
40
41
41
42
- name : check nightly
42
43
uses : actions-rs/cargo@v1
43
- if : matrix.rust == 'nightly '
44
+ if : matrix.rust == '$RUST_NIGHTLY '
44
45
with :
45
46
command : check
46
47
args : --features nightly --all --bins --examples --tests
@@ -55,14 +56,14 @@ jobs:
55
56
56
57
- name : check bench
57
58
uses : actions-rs/cargo@v1
58
- if : matrix.rust == 'nightly '
59
+ if : matrix.rust == '$RUST_NIGHTLY '
59
60
with :
60
61
command : check
61
62
args : --benches
62
63
63
64
- name : check asm
64
65
uses : actions-rs/cargo@v1
65
- if : matrix.rust == 'nightly '
66
+ if : matrix.rust == '$RUST_NIGHTLY '
66
67
with :
67
68
command : check
68
69
args : --features asm
@@ -75,14 +76,14 @@ jobs:
75
76
76
77
- name : nightly
77
78
uses : actions-rs/cargo@v1
78
- if : matrix.rust == 'nightly '
79
+ if : matrix.rust == '$RUST_NIGHTLY '
79
80
with :
80
81
command : test
81
82
args : --all --features nightly
82
83
83
84
- name : asm
84
85
uses : actions-rs/cargo@v1
85
- if : matrix.rust == 'nightly '
86
+ if : matrix.rust == '$RUST_NIGHTLY '
86
87
with :
87
88
command : test
88
89
args : --all --features asm
@@ -95,14 +96,14 @@ jobs:
95
96
96
97
- name : nightly ignored
97
98
uses : actions-rs/cargo@v1
98
- if : matrix.rust == 'nightly '
99
+ if : matrix.rust == '$RUST_NIGHTLY '
99
100
with :
100
101
command : test
101
102
args : --all --features nightly --release -- --ignored
102
103
103
104
- name : asm ignored
104
105
uses : actions-rs/cargo@v1
105
- if : matrix.rust == 'nightly '
106
+ if : matrix.rust == '$RUST_NIGHTLY '
106
107
with :
107
108
command : test
108
109
args : --all --features asm --release -- --ignored
@@ -114,7 +115,7 @@ jobs:
114
115
strategy :
115
116
matrix :
116
117
os : [windows-latest]
117
- rust : [nightly , beta, stable]
118
+ rust : [$RUST_NIGHTLY , beta, stable]
118
119
target :
119
120
- x86_64-pc-windows-gnu
120
121
# FIXME
@@ -142,7 +143,7 @@ jobs:
142
143
143
144
- name : check nightly
144
145
uses : actions-rs/cargo@v1
145
- if : matrix.rust == 'nightly '
146
+ if : matrix.rust == '$RUST_NIGHTLY '
146
147
with :
147
148
command : check
148
149
args : --features nightly --all --bins --examples --tests --target ${{ matrix.target }}
@@ -156,15 +157,15 @@ jobs:
156
157
157
158
- name : check bench
158
159
uses : actions-rs/cargo@v1
159
- if : matrix.rust == 'nightly '
160
+ if : matrix.rust == '$RUST_NIGHTLY '
160
161
with :
161
162
command : check
162
163
target : ${{ matrix.target }}
163
164
args : --benches
164
165
165
166
- name : check asm
166
167
uses : actions-rs/cargo@v1
167
- if : matrix.rust == 'nightly ' && matrix.target == 'x86_64-pc-windows-gnu'
168
+ if : matrix.rust == '$RUST_NIGHTLY ' && matrix.target == 'x86_64-pc-windows-gnu'
168
169
with :
169
170
command : check
170
171
args : --features asm --target ${{ matrix.target }}
@@ -177,15 +178,15 @@ jobs:
177
178
178
179
- name : nightly
179
180
uses : actions-rs/cargo@v1
180
- if : matrix.rust == 'nightly '
181
+ if : matrix.rust == '$RUST_NIGHTLY '
181
182
with :
182
183
command : test
183
184
args : --all --features nightly --target ${{ matrix.target }}
184
185
185
186
# FIXME
186
187
# - name: asm
187
188
# uses: actions-rs/cargo@v1
188
- # if: matrix.rust == 'nightly ' && matrix.target == 'x86_64-pc-windows-gnu'
189
+ # if: matrix.rust == '$RUST_NIGHTLY ' && matrix.target == 'x86_64-pc-windows-gnu'
189
190
# with:
190
191
# command: test
191
192
# args: --all --features asm --target ${{ matrix.target }}
@@ -198,15 +199,15 @@ jobs:
198
199
199
200
- name : nightly ignored
200
201
uses : actions-rs/cargo@v1
201
- if : matrix.rust == 'nightly '
202
+ if : matrix.rust == '$RUST_NIGHTLY '
202
203
with :
203
204
command : test
204
205
args : --all --features nightly --target ${{ matrix.target }} --release -- --ignored
205
206
206
207
# FIXME
207
208
# - name: asm ignored
208
209
# uses: actions-rs/cargo@v1
209
- # if: matrix.rust == 'nightly ' && matrix.target == 'x86_64-pc-windows-gnu'
210
+ # if: matrix.rust == '$RUST_NIGHTLY ' && matrix.target == 'x86_64-pc-windows-gnu'
210
211
# with:
211
212
# command: test
212
213
# args: --all --features asm --target ${{ matrix.target }} --release -- --ignored
@@ -249,7 +250,7 @@ jobs:
249
250
runs-on : ubuntu-latest
250
251
strategy :
251
252
matrix :
252
- rust : [nightly , beta, stable]
253
+ rust : [$RUST_NIGHTLY , beta, stable]
253
254
254
255
steps :
255
256
- uses : actions/checkout@master
@@ -282,7 +283,7 @@ jobs:
282
283
- uses : actions-rs/toolchain@v1
283
284
with :
284
285
profile : minimal
285
- toolchain : nightly
286
+ toolchain : $RUST_NIGHTLY
286
287
override : true
287
288
components : rustfmt
288
289
@@ -304,7 +305,7 @@ jobs:
304
305
- uses : actions-rs/toolchain@v1
305
306
with :
306
307
profile : minimal
307
- toolchain : nightly
308
+ toolchain : $RUST_NIGHTLY
308
309
override : true
309
310
components : clippy
310
311
- uses : actions-rs/clippy-check@v1
0 commit comments