2024-03-12 22:29:51 +08:00
|
|
|
name: 'Setup Go environment'
|
|
|
|
description: 'Setup a Go environment and add it to the PATH'
|
|
|
|
author: 'walker-sheng'
|
2024-03-12 20:50:41 +08:00
|
|
|
|
|
|
|
# Add your action's branding here. This will appear on the GitHub Marketplace.
|
|
|
|
branding:
|
|
|
|
icon: 'heart'
|
|
|
|
color: 'red'
|
|
|
|
|
|
|
|
# Define your inputs here.
|
|
|
|
inputs:
|
2024-03-12 22:29:51 +08:00
|
|
|
go-version:
|
|
|
|
description:
|
|
|
|
'The Go version to download (if necessary) and use. Supports semver spec
|
|
|
|
and ranges. Be sure to enclose this option in single quotation marks.'
|
2024-03-12 20:50:41 +08:00
|
|
|
required: true
|
2024-03-12 22:29:51 +08:00
|
|
|
architecture:
|
|
|
|
description:
|
|
|
|
'Target architecture for Go to use. Examples: x86, x64. Will use system
|
|
|
|
architecture by default.'
|
2024-03-12 20:50:41 +08:00
|
|
|
|
|
|
|
# Define your outputs here.
|
|
|
|
outputs:
|
2024-03-12 22:29:51 +08:00
|
|
|
go-version:
|
|
|
|
description:
|
|
|
|
'The installed Go version. Useful when given a version range as input.'
|
2024-03-12 20:50:41 +08:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: node20
|
|
|
|
main: dist/index.js
|