CI: revert to act image, pin nfpm version to avoid Go toolchain switch
Some checks failed
Release / build (push) Failing after 42s

The golang:1.24 container lacks Node (needed by actions/checkout).
Pin nfpm to v2.41.1 to avoid go>=1.25 requirement that triggers
toolchain download and breaks the build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Axel Meyer
2026-03-03 21:28:03 +01:00
parent 7dc277c9da
commit 50f1f3d758

View File

@@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container: golang:1.24-bookworm
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -16,8 +15,17 @@ jobs:
- name: Extract version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Install Go
run: |
curl -sSL https://go.dev/dl/go1.24.1.linux-amd64.tar.gz -o /tmp/go.tar.gz
tar -C /usr/local -xzf /tmp/go.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH
- name: Install nfpm
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
run: |
export GOPATH=$HOME/go
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.41.1
echo "$GOPATH/bin" >> $GITHUB_PATH
- name: Build Linux binaries
run: |