修改CICD将Rust代理export写入bashrc
Some checks failed
build / build-rust (push) Failing after 3m59s

This commit is contained in:
soul-walker 2024-09-15 10:50:19 +08:00
parent 41614d2c2b
commit 8b59751038

View File

@ -17,6 +17,8 @@ jobs:
run: | run: |
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"
echo "export RUSTUP_DIST_SERVER=\"https://rsproxy.cn\"" >> ~/.bashrc
echo "export RUSTUP_UPDATE_ROOT=\"https://rsproxy.cn/rustup\"" >> ~/.bashrc
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
mkdir -p ~/.cargo mkdir -p ~/.cargo
echo '[source.crates-io]' > ~/.cargo/config.toml echo '[source.crates-io]' > ~/.cargo/config.toml