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

View File

@@ -184,7 +184,7 @@ jobs:
submodules: true
- uses: ./.github/actions/install-rust
with:
toolchain: nightly-2022-12-15
toolchain: nightly-2023-03-20
# Build C API documentation
- run: curl -L https://sourceforge.net/projects/doxygen/files/rel-1.9.3/doxygen-1.9.3.linux.bin.tar.gz/download | tar xzf -
@@ -336,7 +336,7 @@ jobs:
# flags to rustc.
- uses: ./.github/actions/install-rust
with:
toolchain: nightly-2022-12-15
toolchain: nightly-2023-03-20
- run: cargo install cargo-fuzz --vers "^0.11"
# Install the OCaml packages necessary for fuzz targets that use the
# `wasm-spec-interpreter`.