From 6ebfe94518c7bec91c480352469255e37892667a Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Sat, 4 Jun 2022 16:01:55 -0700 Subject: [PATCH] Respect `$CARGO_HOME` when auto-installing `rustup` --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 6512b80..ef88cc5 100644 --- a/action.yml +++ b/action.yml @@ -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