-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathaction.yml
More file actions
26 lines (24 loc) · 788 Bytes
/
action.yml
File metadata and controls
26 lines (24 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: 'Install cargo-binstall'
description: 'Install cargo-binstall tool'
inputs:
version:
description: 'Version of cargo-binstall to install (e.g. 1.2.3 or v1.2.3). Defaults to latest.'
required: false
default: ''
runs:
using: composite
steps:
- name: Install cargo-binstall
if: runner.os != 'Windows'
shell: sh
env:
BINSTALL_VERSION: ${{ inputs.version }}
run: |
set -eu
bash "${{ github.action_path }}/install-from-binstall-release.sh"
- name: Install cargo-binstall
if: runner.os == 'Windows'
shell: powershell
env:
BINSTALL_VERSION: ${{ inputs.version }}
run: Set-ExecutionPolicy Unrestricted -Scope Process; iex "${{ github.action_path }}/install-from-binstall-release.ps1"