-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
139 lines (122 loc) · 5.65 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
name: "Setup any binary tool"
description: "Download and setup of any binary release"
inputs:
name:
description: "Name of the tool"
required: true
version:
description: |
Version of the tool
Required unless `url` is to a GitHub release asset, in which case the
latest release will be looked up if left blank.
required: false
url:
description: |
URL to installation archive. This value may contain interpolations for
name, version, os, arch, and extension.
`http://example.com/binaries/{name}/{version}.{os}_{arch}.{ext}`
`{name}` and `{version}` will match the other inputs. `{os}`, `{arch}` and
`{ext}`, will be inferred, but can be changed by setting additional
inputs.
subdir:
description: |
Subdirectory within the archive to find the executable(s). Supports the
same interpolations as `url`.
os:
description: "`{os}` to use instead of `process.platform`"
arch:
description: "`{arch}` to use instead of `process.arch`"
ext:
description: "`{ext}` to use instead of inferring"
no-extract:
description: |
Do not extract the asset as an archive. Rather, expect that it represents
the (only) binary itself. It will be downloaded, cached, and available on
`$PATH` as `{name}`.
url-darwin: { description: "`url` when `platform==darwin`" }
url-linux: { description: "`url` when `platform==linux`" }
url-win32: { description: "`url` when `platform==win32`" }
url-x64: { description: "`url` when `arch==x64`" }
url-darwin-x64:
{ description: "`url` when `platform==darwin` and `arch==x64`" }
url-darwin-arm64:
{ description: "`url` when `platform==darwin` and `arch==arm64`" }
url-linux-x64: { description: "`url` when `platform==linux` and `arch==x64`" }
url-win32-x64: { description: "`url` when `platform==win33` and `arch==x64`" }
subdir-darwin: { description: "`subdir` when `platform==darwin`" }
subdir-linux: { description: "`subdir` when `platform==linux`" }
subdir-win32: { description: "`subdir` when `platform==win32`" }
subdir-x64: { description: "`subdir` when `arch==x64`" }
subdir-arm64: { description: "`subdir` when `arch==arm64`" }
subdir-darwin-x64:
{ description: "`subdir` when `platform==darwin` and `arch==x64`" }
subdir-darwin-arm64:
{ description: "`subdir` when `platform==darwin` and `arch==arm64`" }
subdir-linux-x64:
{ description: "`subdir` when `platform==linux` and `arch==x64`" }
subdir-win32-x64:
{ description: "`subdir` when `platform==win33` and `arch==x64`" }
os-darwin: { description: "`{os}` to use when `platform==darwin`" }
os-linux: { description: "`{os}` to use when `platform==linux`" }
os-win32: { description: "`{os}` to use when `platform==win32`" }
os-x64: { description: "`{os}` to use when `arch==x64`" }
os-arm64: { description: "`{os}` to use when `arch==arm64`" }
os-darwin-x64:
{ description: "`{os}` to use when `platform==darwin` and `arch==x64`" }
os-darwin-arm64:
{ description: "`{os}` to use when `platform==darwin` and `arch==arm64`" }
os-linux-x64:
{ description: "`{os}` to use when `platform==linux` and `arch==x64`" }
os-win32-x64:
{ description: "`{os}` to use when `platform==win32` and `arch==x64`" }
arch-darwin: { description: "`{arch}` to use when `platform==darwin`" }
arch-linux: { description: "`{arch}` to use when `platform==linux`" }
arch-win32: { description: "`{arch}` to use when `platform==win32`" }
arch-x64: { description: "`{arch}` to use when `arch==x64`" }
arch-arm64: { description: "`{arch}` to use when `arch==arm64`" }
arch-darwin-x64:
{ description: "`{arch}` to use when `platform==darwin` and `arch==x64`" }
arch-darwin-arm64:
{ description: "`{arch}` to use when `platform==darwin` and `arch==arm64`" }
arch-linux-x64:
{ description: "`{arch}` to use when `platform==linux` and `arch==x64`" }
arch-win32-x64:
{ description: "`{arch}` to use when `platform==win32` and `arch==x64`" }
ext-darwin: { description: "`{ext}` to use when `platform==darwin`" }
ext-linux: { description: "`{ext}` to use when `platform==linux`" }
ext-win32: { description: "`{ext}` to use when `platform==win32`" }
ext-x64: { description: "`{ext}` to use when `arch==x64`" }
ext-arm64: { description: "`{ext}` to use when `arch==arm64`" }
ext-darwin-x64:
{ description: "`{ext}` to use when `platform==darwin` and `arch==x64`" }
ext-darwin-arm64:
{ description: "`{ext}` to use when `platform==darwin` and `arch==arm64`" }
ext-linux-x64:
{ description: "`{ext}` to use when `platform==linux` and `arch==x64`" }
ext-win32-x64:
{ description: "`{ext}` to use when `platform==win33` and `arch==x64`" }
github-token:
description: |
If present, and `url` is to a GitHub release asset, we will assume it's
private and use this token to download the asset through the GitHub API.
https://docs.github.com/en/rest/releases/assets?apiVersion=2022-11-28#get-a-release-asset
github-token-for-latest:
description: |
Token used for looking up a latest release when `version` is blank, `url`
is to a GitHub release asset, and `github-token` is not set. This is to
avoid rate limits when interacting with public releases.
default: ${{ github.token }}
outputs:
directory:
description: Directory that was added to `$PATH` as result of setup.
file:
description: |
This is always `outputs.directory/inputs.name`, which will _usually_ match
the path to the downloaded and extracted binary. Only use this output if
you expect that to be the case.
runs:
using: "node20"
main: "dist/index.js"
branding:
icon: "arrow-down-circle"
color: blue