-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
67 lines (65 loc) · 1.9 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
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: 'Golang CGO cross compiler'
description: 'GitHub Action for xgo, a Golang CGO cross compiler'
author: 'crazy-max'
branding:
color: 'green'
icon: 'package'
inputs:
xgo_version:
description: 'xgo version'
default: 'latest'
required: false
go_version:
description: 'Go release to use for cross compilation'
default: 'latest'
required: false
dest:
description: 'Destination folder to put binaries in'
default: 'build'
required: false
pkg:
description: 'Sub-package to build if not root import'
required: false
prefix:
description: 'Prefix to use for output naming. Default to package name'
required: false
targets:
description: 'Comma separated targets to build for. Example: windows/amd64,linux/386'
default: '*/*'
required: false
v:
description: 'Prints the names of packages as they are compiled'
default: 'false'
required: false
x:
description: 'Prints the build commands as compilation progresses'
default: 'false'
required: false
race:
description: 'Enable data race detection (supported only on amd64)'
default: 'false'
required: false
tags:
description: 'Comma separated list of build tags to consider satisfied during the build'
required: false
ldflags:
description: 'Arguments to pass on each go tool link invocation'
required: false
buildmode:
description: 'Indicates which kind of object file to build'
default: 'default'
required: false
buildvcs:
description: 'Whether to stamp binaries with version control information'
required: false
trimpath:
description: 'Remove all file system paths from the resulting executable'
default: 'false'
required: false
working_dir:
description: 'Working directory'
required: false
runs:
using: 'node20'
main: 'dist/index.js'