From 64e4807476fe3d32c6fac03fe835f4e7ac1138ee Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Wed, 23 Apr 2025 16:02:27 +0200 Subject: [PATCH] fix(ci): goreleaser v2 with arm64 Signed-off-by: Yoan Blanc --- .goreleaser.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 1ac263f..a0bc310 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 before: hooks: - go mod download @@ -8,20 +9,26 @@ builds: - linux - windows - darwin + goarch: + - amd64 + - arm64 ldflags: - -s -w -X github.com/edgelaboratories/fusion/cmd.version={{.Tag}} archives: - - format: binary - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: binary + formats: + - binary + - zip + name_template: >- + {{- .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-next" + version_template: "{{ .Tag }}-next" changelog: sort: asc filters: