Skip to content

Commit 5d32458

Browse files
committed
Auto merge of #107543 - ehuss:protocol-sparse, r=jyn514
Enable Cargo's sparse protocol in CI This enables the sparse protocol in CI in order to exercise and dogfood it. This is intended test the production server in a real-world situation. Closes #107342
2 parents f02439d + 5e90940 commit 5d32458

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
name: PR
3838
env:
3939
CI_JOB_NAME: "${{ matrix.name }}"
40+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
4041
SCCACHE_BUCKET: rust-lang-ci-sccache2
4142
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
4243
CACHE_DOMAIN: ci-caches.rust-lang.org
@@ -162,6 +163,7 @@ jobs:
162163
name: auto
163164
env:
164165
CI_JOB_NAME: "${{ matrix.name }}"
166+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
165167
SCCACHE_BUCKET: rust-lang-ci-sccache2
166168
DEPLOY_BUCKET: rust-lang-ci2
167169
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
@@ -584,6 +586,7 @@ jobs:
584586
name: try
585587
env:
586588
CI_JOB_NAME: "${{ matrix.name }}"
589+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
587590
SCCACHE_BUCKET: rust-lang-ci-sccache2
588591
DEPLOY_BUCKET: rust-lang-ci2
589592
TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"

src/ci/github-actions/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ x--expand-yaml-anchors--remove:
3333

3434
- &shared-ci-variables
3535
CI_JOB_NAME: ${{ matrix.name }}
36+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
3637

3738
- &public-variables
3839
SCCACHE_BUCKET: rust-lang-ci-sccache2

src/ci/run.sh

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ fi
4545
ci_dir=`cd $(dirname $0) && pwd`
4646
source "$ci_dir/shared.sh"
4747

48+
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
49+
4850
if ! isCI || isCiBranch auto || isCiBranch beta || isCiBranch try || isCiBranch try-perf; then
4951
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
5052
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.metrics"

0 commit comments

Comments
 (0)