Add cargo-binstall installation path to GITHUB_PATH (#1748)

* Add cargo-binstall installation path to GITHUB_PATH in install-from-binstall-release.sh

Fixed #1714

* Add cargo-binstall installation path to GITHUB_PATH in install-from-binstall-release.ps1

* Update install-script.yml to test

* Fix use of env var in install-from-binstall-release.ps1
This commit is contained in:
Jiahao XU 2024-06-13 23:43:39 +10:00 committed by GitHub
parent 9a270f03b6
commit 05f488322e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 14 additions and 9 deletions

View file

@ -43,7 +43,6 @@ jobs:
CARGO_HOME="$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')"
mkdir -p "${CARGO_HOME}/bin"
echo "CARGO_HOME=$CARGO_HOME" >> "$GITHUB_ENV"
echo "${CARGO_HOME}/bin" >> $GITHUB_PATH
- name: Install `cargo-binstall` using scripts
run: ./install-from-binstall-release.sh
@ -73,7 +72,6 @@ jobs:
CARGO_HOME="$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')"
mkdir -p "${CARGO_HOME}/bin"
echo "CARGO_HOME=$CARGO_HOME" >> "$GITHUB_ENV"
echo "${CARGO_HOME}/bin" >> $GITHUB_PATH
- name: Install `cargo-binstall` using scripts
run: ./install-from-binstall-release.ps1
@ -101,7 +99,6 @@ jobs:
CARGO_HOME="$(mktemp -d 2>/dev/null || mktemp -d -t 'cargo-home')"
mkdir -p "${CARGO_HOME}/bin"
echo "CARGO_HOME=$CARGO_HOME" >> "$GITHUB_ENV"
echo "${CARGO_HOME}/bin" >> $GITHUB_PATH
- name: Install `cargo-binstall` using scripts
shell: bash