2021-12-19 02:28:46 -08:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
|
|
|
|
name: 'Setup Go'
|
|
|
|
description: 'Install Go and override with the custom build'
|
|
|
|
branding:
|
|
|
|
icon: download
|
|
|
|
color: purple
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
2022-09-13 23:25:14 -07:00
|
|
|
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f
|
2021-12-19 02:28:46 -08:00
|
|
|
with:
|
2022-08-27 00:42:25 -07:00
|
|
|
go-version: 1.19
|
2021-12-19 02:28:46 -08:00
|
|
|
- name: Override Go ♻️
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
New-Item -Path ./bin -ItemType Directory
|
2022-08-27 00:42:25 -07:00
|
|
|
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.19/go' -OutFile "$env:GOROOT/bin/go"
|
2021-12-19 02:28:46 -08:00
|
|
|
chmod a+x "$env:GOROOT/bin/go" 2>&1
|