From 41fe044eecb2749ffcf8a0b9b6c7011ca60c9dc0 Mon Sep 17 00:00:00 2001 From: k1LoW Date: Sat, 25 Jan 2025 06:24:59 +0900 Subject: [PATCH] fix: Pin goreleaser version --- .github/workflows/release-test.yml | 2 +- .github/workflows/tagpr.yml | 2 +- .goreleaser/linux.yml | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 872ebd89..107659a3 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -38,7 +38,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest + version: v2.5.1 args: --config .goreleaser/darwin.yml --clean --snapshot --skip=publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tagpr.yml b/.github/workflows/tagpr.yml index 0d6b504d..099595c3 100644 --- a/.github/workflows/tagpr.yml +++ b/.github/workflows/tagpr.yml @@ -49,7 +49,7 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest + version: v2.5.1 args: --config .goreleaser/darwin.yml --clean --skip=publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser/linux.yml b/.goreleaser/linux.yml index 91053936..2e0884ed 100644 --- a/.goreleaser/linux.yml +++ b/.goreleaser/linux.yml @@ -6,8 +6,16 @@ before: builds: - id: tbls-linux + flags: + - -a + - -tags + - netgo,timetzdata + - -installsuffix + - netgo ldflags: - -s -w -X github.com/k1LoW/tbls.version={{.Version}} -X github.com/k1LoW/tbls.commit={{.FullCommit}} -X github.com/k1LoW/tbls.date={{.Date}} -X github.com/k1LoW/tbls/version.Version={{.Version}} + - -linkmode external + - -extldflags '-static' env: - CGO_ENABLED=1 goos: @@ -18,7 +26,9 @@ builds: overrides: - goos: linux goarch: arm64 + goamd64: "" goarm: v8.0 + gomips: "" env: - CC=aarch64-linux-gnu-gcc - CXX=aarch64-linux-gnu-g++