fix(ci): update release workflow for Go 1.25.5

- Upgrade to ubuntu-22.04 runner
- Update Go version to 1.25.5
- Update action versions to v4/v5/v6
- Use --clean instead of deprecated --rm-dist
This commit is contained in:
Zach Kelling
2025-12-21 02:25:46 -08:00
parent cca7926733
commit 801c2eb0e3
+7 -7
View File
@@ -10,23 +10,23 @@ permissions:
jobs:
release:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
path: netrunner
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.25.5'
- name: Set up arm64 cross compiler
run: |
sudo apt-get -y update
sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Checkout osxcross
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: tpoechtrager/osxcross
path: osxcross
@@ -42,11 +42,11 @@ jobs:
MACOS_SDK_FNAME: MacOSX12.3.sdk.tar.xz
MACOS_SDK_CHECKSUM: 3abd261ceb483c44295a6623fdffe5d44fc4ac2c872526576ec5ab5ad0f6e26c
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
workdir: ./netrunner/
env:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret