修改CICD安装Rust环境bug2
Some checks failed
build / build-rust (push) Failing after 1m50s

This commit is contained in:
soul-walker 2024-09-15 09:59:56 +08:00
parent d50404736f
commit c1b2e70989

View File

@ -18,7 +18,9 @@ jobs:
export RUSTUP_DIST_SERVER="https://rsproxy.cn" export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup" export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh -s -- -y curl --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh | sh -s -- -y
. $HOME/.cargo/env echo "\n execute source $HOME/.cargo/env and validate rustup version"
. "$HOME/.cargo/env"
rustup --version
mkdir -p ~/.cargo mkdir -p ~/.cargo
echo '[source.crates-io]' > ~/.cargo/config.toml echo '[source.crates-io]' > ~/.cargo/config.toml
echo 'replace-with = "rsproxy-sparse"' >> ~/.cargo/config.toml echo 'replace-with = "rsproxy-sparse"' >> ~/.cargo/config.toml