jake 2ddfd41587
All checks were successful
tests / test-gomod (push) Successful in 23s
tests / test-versioninput (push) Successful in 26s
Merge pull request 'new/version-input' (#3) from new/version-input into main
Reviewed-on: #3
2026-05-27 18:55:05 +00:00
2026-05-27 14:42:51 -04:00
2026-05-27 14:45:39 -04:00

install-go

tests
An extremely simple github action to install golang and golang commands (using "go install") on linux hosts. This provides the ability to install and setup golang without node/typescript which is required when using actions/setup-go.

Usage

Use a tagged release to avoid unexpected changes that may come to the main branch

    name: "install go"
    uses: https://code.jakeyoungdev.com/actions/install-go@main
    with:
        commands: |
            code.jakeyoungdev.com/jake/mctl@v0.3.3

Go verions

The go version installed is either determined by the version input, or the version found in a go.mod file if the input is not set. Go files are pulled directly from the Go download site and all go commands are installed using 'go install' after setup. If a different version of Go is already installed the 'purge' input must be set to 'yes' to remove it and avoid errors.

Inputs

Some inputs are available to customize the installation

Input Required Values Default Description
arch no any arch for Go amd64 system architecture for go
purge no yes/no no remove any go files found on system before install
commands no any public go repositories . links to any commands to be installed using 'go install'
version no any go version version in go.mod file the go version to install

Issues

This repo is a as brain-dead as I could make it and is intended to be as fast and low-level as possible. Please open an issue for any problems or suggestions.

Description
a simple and fast github action to install golang on workflows
Readme 71 KiB
v0.2.0 Latest
2026-05-27 20:19:14 +00:00
Languages
Shell 100%