Skip to content

Commit

Permalink
Auto merge of #11829 - Muscraft:spaese-ci, r=weihanglo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Mar 11, 2023
2 parents 3c35bf1 + b6205c9 commit 595cb11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ defaults:
permissions:
contents: read

env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
# Check Code style quickly by running `rustfmt` over all code
rustfmt:
Expand Down Expand Up @@ -97,9 +100,6 @@ jobs:
- name: Configure extra test environment
run: echo CARGO_CONTAINER_TESTS=1 >> $GITHUB_ENV
if: matrix.os == 'ubuntu-latest'
- name: Enable sparse
run: echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
if: "!contains(matrix.rust, 'stable')"

- run: cargo test
- name: Clear intermediate test output
Expand Down

0 comments on commit 595cb11

Please sign in to comment.