fix:
This commit is contained in:
parent
672094484c
commit
56311d6351
30
action.yml
30
action.yml
|
|
@ -115,21 +115,29 @@ runs:
|
||||||
if [[ ! -f ~/.cargo/config ]]; then
|
if [[ ! -f ~/.cargo/config ]]; then
|
||||||
mkdir -p ~/.cargo
|
mkdir -p ~/.cargo
|
||||||
cat > ~/.cargo/config <<EOF
|
cat > ~/.cargo/config <<EOF
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
replace-with = 'rsproxy-sparse'
|
replace-with = 'rsproxy-sparse'
|
||||||
|
|
||||||
[source.rsproxy]
|
[source.rsproxy]
|
||||||
registry = "https://rsproxy.cn/crates.io-index"
|
registry = "https://rsproxy.cn/crates.io-index"
|
||||||
|
|
||||||
[source.rsproxy-sparse]
|
[source.rsproxy-sparse]
|
||||||
registry = "sparse+https://rsproxy.cn/index/"
|
registry = "sparse+https://rsproxy.cn/index/"
|
||||||
|
|
||||||
[registries.rsproxy]
|
[registries.rsproxy]
|
||||||
index = "https://rsproxy.cn/crates.io-index"
|
index = "https://rsproxy.cn/crates.io-index"
|
||||||
|
|
||||||
[net]
|
[net]
|
||||||
git-fetch-with-cli = true
|
git-fetch-with-cli = true
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
if: runner.os != 'Windows'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
if ! command -v rustup &> /dev/null ; then
|
||||||
|
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://rsproxy.cn/rustup-init.sh" | sh -s -- --default-toolchain none -y
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue