ci: use USTC mirror for rustup (rsproxy.cn 404 on dist path)
CI / Security audit (RUSTSEC) (pull_request) Failing after 2m15s
CI / Build + Clippy + Test (pull_request) Failing after 31m46s
CI / Security audit (RUSTSEC) (pull_request) Failing after 2m15s
CI / Build + Clippy + Test (pull_request) Failing after 31m46s
rsproxy.cn/rustup returns 404 for /dist/x86_64-unknown-linux-gnu/ rustup-init — different path structure from static.rust-lang.org. Switch to mirrors.ustc.edu.cn/rust-static which is a full mirror with identical path structure.
This commit is contained in:
@@ -35,8 +35,7 @@ jobs:
|
||||
|
||||
- name: Install Rust toolchain (stable)
|
||||
run: |
|
||||
export RUSTUP_DIST_SERVER=https://rsproxy.cn/rustup
|
||||
export RUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup/rustup
|
||||
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --component clippy
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
@@ -107,6 +106,7 @@ jobs:
|
||||
|
||||
- name: Install Rust toolchain (stable)
|
||||
run: |
|
||||
export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user