CI: revert to act image, pin nfpm version to avoid Go toolchain switch
Some checks failed
Release / build (push) Failing after 42s
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:
@@ -8,7 +8,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: golang:1.24-bookworm
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -16,8 +15,17 @@ jobs:
|
|||||||
- name: Extract version
|
- name: Extract version
|
||||||
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
|
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
|
- 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
|
- name: Build Linux binaries
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user