go-cross-build/action.yml

48 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2020-04-11 15:29:35 -04:00
# action name
name: 'go-cross-build'
# action author
author: 'Uday Hiwarale <thatisuday@gmail.com>'
# 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
2020-07-12 17:08:33 -04:00
ldflags:
description: 'Flags to pass to the Go linker.'
default: ''
required: false
2020-04-11 15:29:35 -04:00
# action runner (golang:latest image)
runs:
using: 'docker'
image: 'Dockerfile'
env:
GO111MODULE: 'on'
# branding
branding:
icon: terminal
color: green