From 06011ffe78b9050fb5560ead033c799ee08355f9 Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Tue, 23 Jun 2026 13:38:59 +0200 Subject: [PATCH] [*] speed up GoReleaser step in "Build & Test" GHA workflow --- .github/workflows/build.yml | 2 +- .goreleaser.ci.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.ci.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30788184..bfc148bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: uses: goreleaser/goreleaser-action@v7 with: version: latest - args: release --snapshot --skip=publish --clean + args: release --snapshot --skip=publish --clean --config .goreleaser.ci.yml coverage: if: true # false to skip job during debug diff --git a/.goreleaser.ci.yml b/.goreleaser.ci.yml new file mode 100644 index 00000000..7387ab99 --- /dev/null +++ b/.goreleaser.ci.yml @@ -0,0 +1,30 @@ +version: 2 + +# Minimal snapshot config for CI - linux/amd64 only for speed +# Full release uses .goreleaser.yml + +before: + hooks: + - go mod download + +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + goarch: + - amd64 + +archives: + - name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} + wrap_in_directory: true + +checksum: + disable: true + +changelog: + disable: true