Skip to content

build: upgrade Go version in build and check workflows #107

build: upgrade Go version in build and check workflows

build: upgrade Go version in build and check workflows #107

Workflow file for this run

name: build local for test
env:
# Common versions
GO_VERSION: '1.23'
TZ: Asia/Shanghai
permissions:
contents: read
on:
push:
branches:
- '*'
paths:
- '**.go'
- 'go.mod'
- '.github/**'
jobs:
build:
name: "Build"
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
- name: install gox
run: |
echo "install gox"
go install github.com/mitchellh/gox@latest
- name: install task
run: |
echo "install task"
go install github.com/go-task/task/v3/cmd/task@latest
- name: install upx
uses: crazy-max/ghaction-upx@v3
with:
install-only: true
- name: build tiga
run: |
upx --version
task linux
./_output/tiga_linux_amd64 version
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --snapshot --clean