forked from baptiste0928/cargo-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
61 lines (58 loc) · 1.6 KB
/
action.yml
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'cargo-install'
description: 'GitHub action for cache-efficient Rust crates installation'
inputs:
# Global input parameters
crate:
description: 'Name of the crate to install'
required: true
features:
description: 'Features of the crate to enable.'
required: false
locked:
description: 'Use the crate Cargo.lock if available.'
required: false
default: 'true'
args:
description: 'Arguments added to the `cargo install` command.'
required: false
cache-key:
description: 'Additional key added to the automatic cache key.'
required: false
# Registry installation
version:
description: 'Version of the crate to install.'
required: true
default: 'latest'
registry:
description: 'Registry to install the crate from.'
required: false
index:
description: 'Registry index to install the crate from.'
required: false
# Git installation
git:
description: 'Git repository to install the crate from.'
required: false
branch:
description: 'Branch to install the crate from.'
required: false
tag:
description: 'Tag to install the crate from.'
required: false
commit:
description: 'Commit to install the crate from.'
required: false
rev: # alias for commit
description: 'Commit to install the crate from.'
required: false
outputs:
version:
description: 'The version of the crate that has been installed.'
cache-hit:
description: 'A boolean indicating whether the crate was restored from cache.'
runs:
using: 'node20'
main: 'dist/index.js'
branding:
color: 'yellow'
icon: 'package'