Speed up index fetches on CI (#6069)
* Speed up index fetches on CI Use the `sparse` protocol from Rust 1.68.0 which should shave a minute or two off most steps on CI. * Update nightly toolchains in CI prtest:full * Fix date
This commit is contained in:
6
.github/actions/install-rust/action.yml
vendored
6
.github/actions/install-rust/action.yml
vendored
@@ -44,6 +44,12 @@ runs:
|
||||
EOF
|
||||
fi
|
||||
|
||||
# Use a more efficient method for fetching the crates.io-index than
|
||||
# the (currently) default git-based index.
|
||||
cat >> "$GITHUB_ENV" <<EOF
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
||||
EOF
|
||||
|
||||
- name: Choose registry cache key
|
||||
shell: bash
|
||||
# Update the registry index cache at most once per day. actions/cache
|
||||
|
||||
Reference in New Issue
Block a user