Skip to content

Commit

Permalink
ci: add linux aarch64 binary to release (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Dec 23, 2024
1 parent f3ab494 commit f8bc2c3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,48 @@ 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 }}_
{{- if eq .Os "darwin" }}MacOS
{{- else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- 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
Expand Down

0 comments on commit f8bc2c3

Please sign in to comment.