Skip to content

Commit

Permalink
ci: add linux aarch64 binary to release
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Dec 21, 2024
1 parent 0a15c5e commit 0a34b83
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,25 @@ builds:
ldflags:
- -s -w -X github.com/evilmartians/lefthook/internal/version.commit={{.Commit}}

- id: lefthook-linux-aarch64
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- arm64
flags:
- -trimpath
ldflags:
- -s -w -X github.com/evilmartians/lefthook/internal/version.commit={{.Commit}}

archives:
- id: lefthook
format: binary
builds:
- lefthook
files:
- none*
- none*
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
Expand All @@ -78,6 +90,22 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
- id: lefthook-linux-aarch64
format: binary
builds:
- lefthook-linux-aarch64
files:
- none*
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}MacOS
{{- else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
- id: lefthook-gz
format: gz
builds:
Expand All @@ -93,7 +121,6 @@ archives:
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
source:
enabled: true
name_template: "{{ .ProjectName }}_source"
Expand Down

0 comments on commit 0a34b83

Please sign in to comment.