|
15 | 15 | SCCACHE_GHA_ENABLED: true |
16 | 16 | RUSTC_WRAPPER: sccache |
17 | 17 |
|
| 18 | + _RUST_STABLE: &rust_stable stable |
| 19 | + # Pinning the nightly version to a "stable" version to avoid CI breakages. |
| 20 | + _RUST_NIGHTLY: &rust_nightly nightly-2025-11-11 |
| 21 | + |
18 | 22 | # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. |
19 | 23 | # This will ensure that only one commit will be running tests at a time on each PR. |
20 | 24 | concurrency: |
|
58 | 62 | os: [ubuntu-latest, macos-latest, windows-latest] |
59 | 63 | include: |
60 | 64 | - rust: stable |
61 | | - version: stable |
| 65 | + version: *rust_stable |
62 | 66 | - rust: nightly |
63 | | - version: nightly |
| 67 | + version: *rust_nightly |
64 | 68 | - rust: MSRV |
65 | 69 | version: "1.88" # MSRV |
66 | 70 |
|
@@ -149,7 +153,7 @@ jobs: |
149 | 153 | uses: dtolnay/rust-toolchain@master |
150 | 154 | with: |
151 | 155 | # cot_macros ui tests require nightly |
152 | | - toolchain: nightly |
| 156 | + toolchain: *rust_nightly |
153 | 157 |
|
154 | 158 | - name: Cache Cargo registry |
155 | 159 | uses: Swatinem/rust-cache@v2 |
@@ -195,7 +199,7 @@ jobs: |
195 | 199 | uses: dtolnay/rust-toolchain@master |
196 | 200 | with: |
197 | 201 | # branch coverage is currently optional and requires nightly |
198 | | - toolchain: nightly |
| 202 | + toolchain: *rust_nightly |
199 | 203 | components: llvm-tools-preview |
200 | 204 |
|
201 | 205 | - name: Reclaim disk space |
@@ -248,7 +252,7 @@ jobs: |
248 | 252 | uses: dtolnay/rust-toolchain@master |
249 | 253 | with: |
250 | 254 | # nightly-only rustfmt settings |
251 | | - toolchain: nightly |
| 255 | + toolchain: *rust_nightly |
252 | 256 | components: rustfmt |
253 | 257 |
|
254 | 258 | - name: Cache Cargo registry |
@@ -299,7 +303,7 @@ jobs: |
299 | 303 | uses: dtolnay/rust-toolchain@master |
300 | 304 | with: |
301 | 305 | # the `-Z` flag is only accepted on the nightly channel of Cargo |
302 | | - toolchain: nightly |
| 306 | + toolchain: *rust_nightly |
303 | 307 |
|
304 | 308 | - name: Cache Cargo registry |
305 | 309 | uses: Swatinem/rust-cache@v2 |
@@ -368,7 +372,7 @@ jobs: |
368 | 372 | uses: dtolnay/rust-toolchain@master |
369 | 373 | with: |
370 | 374 | # miri requires nightly |
371 | | - toolchain: nightly |
| 375 | + toolchain: *rust_nightly |
372 | 376 | components: miri |
373 | 377 |
|
374 | 378 | - name: Cache Cargo registry |
|
0 commit comments