move from sh.rustup.rs to static.rust-lang.org
This commit is contained in:
1 file changed
+29
-7
@@ -70,16 +70,38 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
shell: powershell
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
$ErrorActionPreference = "Stop"
|
set -euxo pipefail
|
||||||
|
|
||||||
rustup update stable
|
RUST_VERSION="1.98.1"
|
||||||
rustup default stable
|
|
||||||
rustup target add x86_64-pc-windows-msvc
|
|
||||||
|
|
||||||
rustc --version
|
rm -f /tmp/rustup-init
|
||||||
cargo --version
|
|
||||||
|
curl \
|
||||||
|
--fail \
|
||||||
|
--location \
|
||||||
|
--retry 5 \
|
||||||
|
--retry-delay 3 \
|
||||||
|
--retry-all-errors \
|
||||||
|
--connect-timeout 20 \
|
||||||
|
https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init \
|
||||||
|
-o /tmp/rustup-init
|
||||||
|
|
||||||
|
chmod +x /tmp/rustup-init
|
||||||
|
|
||||||
|
/tmp/rustup-init \
|
||||||
|
-y \
|
||||||
|
--profile minimal \
|
||||||
|
--default-toolchain "${RUST_VERSION}" \
|
||||||
|
--default-host x86_64-unknown-linux-gnu \
|
||||||
|
--no-modify-path
|
||||||
|
|
||||||
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
|
"$HOME/.cargo/bin/rustc" --version
|
||||||
|
"$HOME/.cargo/bin/cargo" --version
|
||||||
|
"$HOME/.cargo/bin/rustup" --version
|
||||||
|
|
||||||
|
|
||||||
- name: Show build tools
|
- name: Show build tools
|
||||||
|
|||||||
Reference in new issue
Block a user