Skip to content

Commit 595cb11

Browse files
committed
Auto merge of #11829 - Muscraft:spaese-ci, r=weihanglo
chore: Use sparse protocol on stable CI [Rust `1.68.0`](https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html) was released yesterday and it stabilized [Cargo's sparse protocol](https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol). The protocol has been used in [CI on nightly](https://github.com/rust-lang/cargo/blob/3c35bf10ad21083f04a033d2abd8179cfbd0380b/.github/workflows/main.yml#L100-L102) for some time. This PR enables the protocol for stable CI runs.
2 parents 3c35bf1 + b6205c9 commit 595cb11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ defaults:
1212
permissions:
1313
contents: read
1414

15+
env:
16+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
17+
1518
jobs:
1619
# Check Code style quickly by running `rustfmt` over all code
1720
rustfmt:
@@ -97,9 +100,6 @@ jobs:
97100
- name: Configure extra test environment
98101
run: echo CARGO_CONTAINER_TESTS=1 >> $GITHUB_ENV
99102
if: matrix.os == 'ubuntu-latest'
100-
- name: Enable sparse
101-
run: echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
102-
if: "!contains(matrix.rust, 'stable')"
103103

104104
- run: cargo test
105105
- name: Clear intermediate test output

0 commit comments

Comments
 (0)