Add arm64 binaries

This commit is contained in:
Juan Font Alonso 2021-10-15 17:00:04 +02:00
parent abfb1791f1
commit 5807562b56

View file

@ -20,6 +20,7 @@ builds:
- -mod=readonly - -mod=readonly
ldflags: ldflags:
- -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}} - -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
- id: linux-armhf - id: linux-armhf
main: ./cmd/headscale/headscale.go main: ./cmd/headscale/headscale.go
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
@ -49,9 +50,16 @@ builds:
- linux - linux
goarch: goarch:
- amd64 - amd64
goarm: main: ./cmd/headscale/headscale.go
- 6 mod_timestamp: '{{ .CommitTimestamp }}'
- 7 ldflags:
- -s -w -X github.com/juanfont/headscale/cmd/headscale/cli.Version=v{{.Version}}
- id: linux-arm64
goos:
- linux
goarch:
- arm64
main: ./cmd/headscale/headscale.go main: ./cmd/headscale/headscale.go
mod_timestamp: '{{ .CommitTimestamp }}' mod_timestamp: '{{ .CommitTimestamp }}'
ldflags: ldflags:
@ -63,6 +71,7 @@ archives:
- darwin-amd64 - darwin-amd64
- linux-armhf - linux-armhf
- linux-amd64 - linux-amd64
- linux-arm64
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: binary format: binary