Compare commits

..

No commits in common. "06a6da51ae573e57d678388117acc09fd7fd1c2f" and "c0bc579c138d1f4944090c2021f9a7c2e473184b" have entirely different histories.

1 changed files with 1 additions and 22 deletions

View File

@ -106,12 +106,6 @@ runs:
if [[ ! -v CARGO_REGISTRIES_CRATES_IO_PROTOCOL ]]; then
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV
fi
if [[ ! -v RUSTUP_DIST_SERVER ]]; then
echo "RUSTUP_DIST_SERVER=https://rsproxy.cn" >> $GITHUB_ENV
fi
if [[ ! -v RUSTUP_UPDATE_ROOT ]]; then
echo "RUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup" >> $GITHUB_ENV
fi
- name: Install Rust Problem Matcher
if: inputs.matcher == 'true'
@ -123,7 +117,7 @@ runs:
shell: bash
run: |
if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://rsproxy.cn/rustup-init.sh" | sh -s -- --default-toolchain none -y
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
fi
@ -152,21 +146,6 @@ runs:
fi
rustup toolchain install $toolchain${{steps.flags.outputs.targets}}${{steps.flags.outputs.components}} --profile minimal${{steps.flags.outputs.downgrade}} --no-self-update
rustup override set $toolchain
if [[ ! -f ~/.cargo/config ]]; then
mkdir -p ~/.cargo
touch ~/.cargo/config
fi
cat /dev/null > ~/.cargo/config
echo "[source.crates-io]" > ~/.cargo/config
echo "replace-with = 'rsproxy-sparse'" >> ~/.cargo/config
echo "[source.rsproxy]" >> ~/.cargo/config
echo "registry = 'https://rsproxy.cn/crates.io-index'" >> ~/.cargo/config
echo "[source.rsproxy-sparse]" >> ~/.cargo/config
echo "registry = 'sparse+https://rsproxy.cn/index/'" >> ~/.cargo/config
echo "[registries.rsproxy]" >> ~/.cargo/config
echo "index = 'https://rsproxy.cn/crates.io-index'" >> ~/.cargo/config
echo "[net]" >> ~/.cargo/config
echo "git-fetch-with-cli = true" >> ~/.cargo/config
fi
- id: versions