forked from crazy-max/ghaction-xgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
65 lines (63 loc) · 1.88 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
# 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
working_dir:
description: 'Working directory'
required: false
docker-repo:
deprecationMessage: 'docker-repo is deprecated and not used anymore.'
description: 'Use custom docker repo instead of official distribution'
default: 'ghcr.io/crazy-max/xgo'
required: false
runs:
using: 'node12'
main: 'dist/index.js'