Add GitHub Action declaration for installing cargo-binstall (#1269)

add action.yml and test it
This commit is contained in:
Marcin Nowak-Liebiediew 2023-08-09 22:50:16 +02:00 committed by GitHub
parent 8e6dcc57ff
commit 42dddd972d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 0 deletions

14
action.yml Normal file
View file

@ -0,0 +1,14 @@
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: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | 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