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: |
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
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
echo "${CARGO_HOME:-~/.cargo}/bin" >> $GITHUB_PATH
fi
if: runner.os != 'Windows'
shell: bash