use rustup minimal profile and add curl retries

This commit is contained in:
Spencer 2022-09-10 23:43:33 -07:00 committed by GitHub
parent ae57150d0d
commit 73d759955f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ jobs:
shell: bash shell: bash
run: | run: |
apt-get update && apt-get install -y build-essential curl apt-get update && apt-get install -y build-essential curl
curl --proto '=https' --tlsv1.2 "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
- name: Install Rust toolchain - name: Install Rust toolchain