ci: switch to rsproxy cargo mirror
Some checks failed
CI / check (push) Successful in 10m25s
CI / build (push) Failing after 2m45s

This commit is contained in:
xfy 2026-06-12 17:29:37 +08:00
parent 942ac853fe
commit 997f9b4617

View File

@ -24,7 +24,7 @@ jobs:
- name: Configure Cargo mirror
run: |
mkdir -p "$HOME/.cargo"
printf '%s\n' '[source.crates-io]' "replace-with = 'ustc'" '' "[source.ustc]" 'registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"' > "$HOME/.cargo/config.toml"
printf '%s\n' '[source.crates-io]' "replace-with = 'rsproxy'" '' "[source.rsproxy]" 'registry = "sparse+https://rsproxy.cn/index/"' > "$HOME/.cargo/config.toml"
- name: Install Rust toolchain
run: |
@ -74,7 +74,7 @@ jobs:
- name: Configure Cargo mirror
run: |
mkdir -p "$HOME/.cargo"
printf '%s\n' '[source.crates-io]' "replace-with = 'ustc'" '' "[source.ustc]" 'registry = "sparse+https://mirrors.ustc.edu.cn/crates.io-index/"' > "$HOME/.cargo/config.toml"
printf '%s\n' '[source.crates-io]' "replace-with = 'rsproxy'" '' "[source.rsproxy]" 'registry = "sparse+https://rsproxy.cn/index/"' > "$HOME/.cargo/config.toml"
- name: Install Rust toolchain
run: |