From d9d12613f5c5ebeac68be00aaf0ccb2ca1c943f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 00:09:13 +0000 Subject: [PATCH 1/2] build(deps): bump goreleaser/goreleaser-action in the actions group Bumps the actions group with 1 update: [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action). Updates `goreleaser/goreleaser-action` from 5 to 6 - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v5...v6) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0b6c20b..176004a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: go-version-file: go.mod check-latest: true cache: true - - uses: goreleaser/goreleaser-action@v5 + - uses: goreleaser/goreleaser-action@v6 with: args: release env: From 371b315dadf1bc29cb9c1ed3f45fe65f0b339291 Mon Sep 17 00:00:00 2001 From: Matt Loberg Date: Fri, 12 Jul 2024 10:31:38 -0500 Subject: [PATCH 2/2] ci(goreleaser): update to v2 config Use built in upx config instead of hook --- .goreleaser.yaml | 21 +++++++++++---------- Makefile | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 48ff8c1..b8d7fac 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,23 +1,24 @@ +version: 2 before: hooks: - go mod tidy - go generate ./... builds: - - env: - - CGO_ENABLED=0 + - goos: + - linux + goarch: + - amd64 + - arm64 flags: - -trimpath - -mod=readonly ldflags: - -s -w - goos: - - linux - goarch: - - amd64 - - arm64 - hooks: - post: - - upx --brute {{ .Path }} + env: + - CGO_ENABLED=0 +upx: + - enabled: true + brute: true archives: - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}' format: binary diff --git a/Makefile b/Makefile index d0a8d5c..8744156 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ help: build: ## Build binary @echo "+ $@" - @goreleaser build --snapshot --rm-dist --skip-post-hooks + @goreleaser build --snapshot --clean .PHONY: build generate: ## Autogenerate code and resources