mirror of
https://github.com/dtolnay/rust-toolchain.git
synced 2024-12-22 15:45:50 +02: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: |
|
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
|
||||||
|
|
Loading…
Reference in a new issue