Skip to content

Commit e747f30

Browse files
committed
chore: use a variable for "nightly", use a fixed nightly version for now
This nightly version avoids triggering the errors from dalek-cryptography/curve25519-dalek#618
1 parent 3015840 commit e747f30

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

.github/workflows/ci.yml

+20-19
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
RUST_BACKTRACE: 1
1111
RUSTFLAGS: -Dwarnings
12+
RUST_NIGHTLY: nightly-2024-02-03
1213

1314

1415
jobs:
@@ -18,7 +19,7 @@ jobs:
1819
strategy:
1920
matrix:
2021
os: [ubuntu-latest, macOS-latest]
21-
rust: [nightly, beta, stable]
22+
rust: [$RUST_NIGHTLY, beta, stable]
2223

2324
steps:
2425
- name: Checkout
@@ -40,7 +41,7 @@ jobs:
4041

4142
- name: check nightly
4243
uses: actions-rs/cargo@v1
43-
if: matrix.rust == 'nightly'
44+
if: matrix.rust == '$RUST_NIGHTLY'
4445
with:
4546
command: check
4647
args: --features nightly --all --bins --examples --tests
@@ -55,14 +56,14 @@ jobs:
5556

5657
- name: check bench
5758
uses: actions-rs/cargo@v1
58-
if: matrix.rust == 'nightly'
59+
if: matrix.rust == '$RUST_NIGHTLY'
5960
with:
6061
command: check
6162
args: --benches
6263

6364
- name: check asm
6465
uses: actions-rs/cargo@v1
65-
if: matrix.rust == 'nightly'
66+
if: matrix.rust == '$RUST_NIGHTLY'
6667
with:
6768
command: check
6869
args: --features asm
@@ -75,14 +76,14 @@ jobs:
7576

7677
- name: nightly
7778
uses: actions-rs/cargo@v1
78-
if: matrix.rust == 'nightly'
79+
if: matrix.rust == '$RUST_NIGHTLY'
7980
with:
8081
command: test
8182
args: --all --features nightly
8283

8384
- name: asm
8485
uses: actions-rs/cargo@v1
85-
if: matrix.rust == 'nightly'
86+
if: matrix.rust == '$RUST_NIGHTLY'
8687
with:
8788
command: test
8889
args: --all --features asm
@@ -95,14 +96,14 @@ jobs:
9596

9697
- name: nightly ignored
9798
uses: actions-rs/cargo@v1
98-
if: matrix.rust == 'nightly'
99+
if: matrix.rust == '$RUST_NIGHTLY'
99100
with:
100101
command: test
101102
args: --all --features nightly --release -- --ignored
102103

103104
- name: asm ignored
104105
uses: actions-rs/cargo@v1
105-
if: matrix.rust == 'nightly'
106+
if: matrix.rust == '$RUST_NIGHTLY'
106107
with:
107108
command: test
108109
args: --all --features asm --release -- --ignored
@@ -114,7 +115,7 @@ jobs:
114115
strategy:
115116
matrix:
116117
os: [windows-latest]
117-
rust: [nightly, beta, stable]
118+
rust: [$RUST_NIGHTLY, beta, stable]
118119
target:
119120
- x86_64-pc-windows-gnu
120121
# FIXME
@@ -142,7 +143,7 @@ jobs:
142143

143144
- name: check nightly
144145
uses: actions-rs/cargo@v1
145-
if: matrix.rust == 'nightly'
146+
if: matrix.rust == '$RUST_NIGHTLY'
146147
with:
147148
command: check
148149
args: --features nightly --all --bins --examples --tests --target ${{ matrix.target }}
@@ -156,15 +157,15 @@ jobs:
156157

157158
- name: check bench
158159
uses: actions-rs/cargo@v1
159-
if: matrix.rust == 'nightly'
160+
if: matrix.rust == '$RUST_NIGHTLY'
160161
with:
161162
command: check
162163
target: ${{ matrix.target }}
163164
args: --benches
164165

165166
- name: check asm
166167
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'
168169
with:
169170
command: check
170171
args: --features asm --target ${{ matrix.target }}
@@ -177,15 +178,15 @@ jobs:
177178

178179
- name: nightly
179180
uses: actions-rs/cargo@v1
180-
if: matrix.rust == 'nightly'
181+
if: matrix.rust == '$RUST_NIGHTLY'
181182
with:
182183
command: test
183184
args: --all --features nightly --target ${{ matrix.target }}
184185

185186
# FIXME
186187
# - name: asm
187188
# 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'
189190
# with:
190191
# command: test
191192
# args: --all --features asm --target ${{ matrix.target }}
@@ -198,15 +199,15 @@ jobs:
198199

199200
- name: nightly ignored
200201
uses: actions-rs/cargo@v1
201-
if: matrix.rust == 'nightly'
202+
if: matrix.rust == '$RUST_NIGHTLY'
202203
with:
203204
command: test
204205
args: --all --features nightly --target ${{ matrix.target }} --release -- --ignored
205206

206207
# FIXME
207208
# - name: asm ignored
208209
# 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'
210211
# with:
211212
# command: test
212213
# args: --all --features asm --target ${{ matrix.target }} --release -- --ignored
@@ -249,7 +250,7 @@ jobs:
249250
runs-on: ubuntu-latest
250251
strategy:
251252
matrix:
252-
rust: [nightly, beta, stable]
253+
rust: [$RUST_NIGHTLY, beta, stable]
253254

254255
steps:
255256
- uses: actions/checkout@master
@@ -282,7 +283,7 @@ jobs:
282283
- uses: actions-rs/toolchain@v1
283284
with:
284285
profile: minimal
285-
toolchain: nightly
286+
toolchain: $RUST_NIGHTLY
286287
override: true
287288
components: rustfmt
288289

@@ -304,7 +305,7 @@ jobs:
304305
- uses: actions-rs/toolchain@v1
305306
with:
306307
profile: minimal
307-
toolchain: nightly
308+
toolchain: $RUST_NIGHTLY
308309
override: true
309310
components: clippy
310311
- uses: actions-rs/clippy-check@v1

0 commit comments

Comments
 (0)