1515 SCCACHE_GHA_ENABLED : true
1616 RUSTC_WRAPPER : sccache
1717
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+
1822# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
1923# This will ensure that only one commit will be running tests at a time on each PR.
2024concurrency :
5862 os : [ubuntu-latest, macos-latest, windows-latest]
5963 include :
6064 - rust : stable
61- version : stable
65+ version : *rust_stable
6266 - rust : nightly
63- version : nightly
67+ version : *rust_nightly
6468 - rust : MSRV
6569 version : " 1.88" # MSRV
6670
@@ -149,7 +153,7 @@ jobs:
149153 uses : dtolnay/rust-toolchain@master
150154 with :
151155 # cot_macros ui tests require nightly
152- toolchain : nightly
156+ toolchain : *rust_nightly
153157
154158 - name : Cache Cargo registry
155159 uses : Swatinem/rust-cache@v2
@@ -195,7 +199,7 @@ jobs:
195199 uses : dtolnay/rust-toolchain@master
196200 with :
197201 # branch coverage is currently optional and requires nightly
198- toolchain : nightly
202+ toolchain : *rust_nightly
199203 components : llvm-tools-preview
200204
201205 - name : Reclaim disk space
@@ -224,14 +228,17 @@ jobs:
224228 uses : taiki-e/install-action@cargo-llvm-cov
225229
226230 - name : Generate code coverage
227- run : cargo llvm-cov --all-features --workspace --branch --codecov --output-path codecov.json -- --include-ignored
231+ run : cargo llvm-cov --all-features --workspace --branch --no-report -- --include-ignored
228232
229233 - name : Generate code coverage - doctests
230- run : cargo llvm-cov --all-features --workspace --branch --doc --codecov --output-path codecov-doctests.json
234+ run : cargo llvm-cov --all-features --workspace --branch --doc --no-report
235+
236+ - name : Merge code coverage reports
237+ run : cargo llvm-cov report --codecov --output-path codecov.json
231238
232239 - uses : codecov/codecov-action@v5
233240 with :
234- files : codecov.json codecov-doctests.json
241+ files : codecov.json
235242 flags : rust
236243 fail_ci_if_error : true
237244 env :
@@ -251,7 +258,7 @@ jobs:
251258 uses : dtolnay/rust-toolchain@master
252259 with :
253260 # nightly-only rustfmt settings
254- toolchain : nightly
261+ toolchain : *rust_nightly
255262 components : rustfmt
256263
257264 - name : Cache Cargo registry
@@ -302,7 +309,7 @@ jobs:
302309 uses : dtolnay/rust-toolchain@master
303310 with :
304311 # the `-Z` flag is only accepted on the nightly channel of Cargo
305- toolchain : nightly
312+ toolchain : *rust_nightly
306313
307314 - name : Cache Cargo registry
308315 uses : Swatinem/rust-cache@v2
@@ -371,7 +378,7 @@ jobs:
371378 uses : dtolnay/rust-toolchain@master
372379 with :
373380 # miri requires nightly
374- toolchain : nightly
381+ toolchain : *rust_nightly
375382 components : miri
376383
377384 - name : Cache Cargo registry
0 commit comments