mirror of
https://github.com/actions-rust-lang/setup-rust-toolchain.git
synced 2025-07-04 12:31:11 +00:00
Do not enable sparse registry on stable
This commit is contained in:
parent
2941fbfa4a
commit
dfa8744db3
2 changed files with 11 additions and 1 deletions
|
@ -63,11 +63,13 @@ runs:
|
|||
echo "RUST_BACKTRACE=short" >> $GITHUB_ENV
|
||||
echo "RUSTFLAGS=-D warnings" >> $GITHUB_ENV
|
||||
# Enable faster sparse index on nightly
|
||||
# The value is ignored on stable and causes no problems
|
||||
# https://internals.rust-lang.org/t/call-for-testing-cargo-sparse-registry/16862
|
||||
echo "CARGO_UNSTABLE_SPARSE_REGISTRY=true" >> $GITHUB_ENV
|
||||
# Enable sparse index after stabilization
|
||||
# This causes warnings on stable 1.67, e.g., when using "cargo add"
|
||||
# https://github.com/rust-lang/cargo/pull/11224
|
||||
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
|
||||
# echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
- name: "Install Rust Problem Matcher"
|
||||
run: echo "::add-matcher::${{ github.action_path }}/rust.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue