-
Notifications
You must be signed in to change notification settings - Fork 29
/
action.yml
47 lines (42 loc) · 1.16 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
# action name
name: 'go-cross-build'
# action author
author: 'Uday Hiwarale <[email protected]>'
# action description
description: 'Generates cross-platform executable files from a Go module.'
# action input values
inputs:
platforms:
description: 'Comma-separated list of "<kernel>/<arch>" combinations.'
default: 'linux/386,linux/amd64'
required: false
package:
description: 'Package (directory) in the module to build. By default, builds the module directory.'
default: ''
required: false
compress:
description: 'Compress each build file inside a ".tar.gz" archive.'
default: 'false'
required: false
name:
description: 'Binary executable filename and filenames prefix for the build files.'
default: 'program'
required: false
dest:
description: 'Destination directory inside workspace to output build-artifacts.'
default: 'build'
required: false
ldflags:
description: 'Flags to pass to the Go linker.'
default: ''
required: false
# action runner (golang:latest image)
runs:
using: 'docker'
image: 'Dockerfile'
env:
GO111MODULE: 'on'
# branding
branding:
icon: terminal
color: green