mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix install-from-binstall-release.sh for Git Bash users on Windows (#1562)
* Update install-from-binstall-release.sh * Update install-from-binstall-release.sh * Update install-from-binstall-release.sh Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com> * Update install-from-binstall-release.sh Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com> * Update install-script.yml * Update install-from-binstall-release.sh * Update install-script.yml --------- Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
7222a8279d
commit
b415b0d7e6
2 changed files with 36 additions and 0 deletions
30
.github/workflows/install-script.yml
vendored
30
.github/workflows/install-script.yml
vendored
|
@ -82,3 +82,33 @@ jobs:
|
|||
|
||||
- name: Verify `cargo-binstall` installation
|
||||
run: cargo binstall -vV
|
||||
|
||||
windows-bash:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
set_cargo_home: [t, f]
|
||||
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set `CARGO_HOME`
|
||||
if: matrix.set_cargo_home == 't'
|
||||
shell: bash
|
||||
run: |
|
||||
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
|
||||
run: ./install-from-binstall-release.sh
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify `cargo-binstall` installation
|
||||
shell: bash
|
||||
run: cargo binstall -vV
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue