mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-11-22 00:39:31 +01:00
Respect $CARGO_HOME
when auto-installing rustup
This commit is contained in:
parent
6b014e5670
commit
6ebfe94518
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue