From 56feb64b10b441fd6e91c62ce397fb23c89a2bd9 Mon Sep 17 00:00:00 2001 From: dailz Date: Tue, 14 Jul 2026 14:43:32 +0800 Subject: [PATCH] ci: use USTC mirror for rustup (rsproxy.cn 404 on dist path) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 237b131..f00c08a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"