mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
16 lines
698 B
YAML
16 lines
698 B
YAML
name: 'Install cargo-binstall'
|
|
description: 'Install the latest version of cargo-binstall tool'
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install cargo-binstall
|
|
if: runner.os != 'Windows'
|
|
shell: sh
|
|
run: |
|
|
set -eu
|
|
(curl --retry 10 -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh || echo 'exit 1') | bash
|
|
- name: Install cargo-binstall
|
|
if: runner.os == 'Windows'
|
|
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content
|
|
shell: powershell
|