mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Add GitHub Action declaration for installing cargo-binstall
(#1269)
add action.yml and test it
This commit is contained in:
parent
8e6dcc57ff
commit
42dddd972d
3 changed files with 54 additions and 0 deletions
14
action.yml
Normal file
14
action.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue