3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-22 16:49:31 +01:00

Respect $CARGO_HOME when auto-installing rustup

This commit is contained in:
Thom Chiovoloni 2022-06-04 16:01:55 -07:00
parent 6b014e5670
commit 6ebfe94518
No known key found for this signature in database
GPG key ID: E2EFD4309E11C8A8

View file

@ -35,7 +35,7 @@ runs:
run: | run: |
if ! command -v rustup &> /dev/null ; then if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "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 -- --default-toolchain none -y
echo "$HOME/.cargo/bin" >> $GITHUB_PATH echo "${CARGO_HOME:-~/.cargo}/bin" >> $GITHUB_PATH
fi fi
if: runner.os != 'Windows' if: runner.os != 'Windows'
shell: bash shell: bash