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:
Alex Crichton
2023-03-20 14:44:59 -05:00
committed by GitHub
parent 49bab6db7f
commit 6a03398faf
2 changed files with 8 additions and 2 deletions

View File

@@ -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