2021-10-06 12:43:18 -07:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'CONTRIBUTING.md'
|
|
|
|
- 'COPYING'
|
|
|
|
- 'docs/**'
|
|
|
|
- '.github/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
|
|
|
|
|
|
|
name: Build Code
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-16 10:59:45 -08:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: pwsh
|
2021-10-06 12:43:18 -07:00
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.17
|
2021-12-16 10:59:45 -08:00
|
|
|
- name: Override Go ♻️
|
|
|
|
run: |
|
|
|
|
New-Item -Path ./bin -ItemType Directory
|
|
|
|
Invoke-WebRequest 'https://github.com/jandedobbeleer/go/releases/download/1.17.5/go' -OutFile "$env:GOROOT/bin/go"
|
|
|
|
chmod a+x "$env:GOROOT/bin/go" 2>&1
|
2021-10-06 12:43:18 -07:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Run GoReleaser
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
|
|
|
version: latest
|
2021-12-02 13:42:38 -08:00
|
|
|
args: build --rm-dist --snapshot --skip-post-hooks
|
2021-10-06 12:43:18 -07:00
|
|
|
workdir: src
|