test-workflow #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
architecture: x64 | |
- name: Setup taskfile.dev | |
uses: crazy-max/ghaction-chocolatey@v3 | |
with: | |
args: install go-task | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v2 | |
- name: Install build dependencies | |
run: go install github.com/gonutz/rsrc@latest | |
- name: Install UPX | |
uses: crazy-max/ghaction-upx@v3 | |
with: | |
install-only: true | |
- name: Build and pack binaries | |
run: task pack |