install-go/README.md

28 lines
1.5 KiB
Markdown
Raw Normal View History

2025-03-31 15:26:35 -04:00
# install-go
2025-04-04 14:23:12 -04:00
[tests](https://code.jakeyoungdev.com/actions/install-go/actions/workflows/test.yaml/badge.svg?branch=master&event=push)
2025-03-31 15:26:35 -04:00
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](https://github.com/actions/setup-go).
## Usage
2025-03-31 15:49:08 -04:00
Use a tagged release to avoid unexpected changes that may come to the master branch
2025-03-31 15:26:35 -04:00
```yaml
name: "install go"
uses: https://code.jakeyoungdev.com/actions/install-go@master
with:
commands: |
github.com/jake-young-dev/kelp@v0.0.9
```
#### Go verions
Go version is determined using the go.mod file in the root of working directory. Go files are pulled directly from the go download [site](https://go.dev/dl/) and all go commands are installed using 'go install' after setup. If a Go version is already present the 'purge' input must be set to 'yes' to 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 golang
|purge|no|yes/no|no|remove any golang files found on system before install
2025-03-31 15:49:08 -04:00
|commands|no|any public go repositories|.|links to any commands to be installed using 'go install'
2025-03-31 15:26:35 -04:00
## 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.