From e589aaf6ad5b6453a0ddd58b64a26de5879bb5e5 Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Mon, 28 Mar 2022 14:53:13 -0700 Subject: [PATCH] Enable darwin_arm64 builds --- .goreleaser.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9b9141a6..6e9e1717 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,13 +14,17 @@ builds: - darwin goarch: - amd64 + - arm64 + ignore: + - goos: linux + goarch: arm64 ldflags: # the following line will inject the current git commit and git tag in the binary during the build process. # .ShortCommit and .Version are template variables that will be set during the GoReleaser run # The "-X" go flag injects the strings into the two global variables GitCommit and Version # See also: https://pkg.go.dev/cmd/link - -s - - -w + - -w - -X github.com/openshift/osdctl/cmd.GitCommit={{.ShortCommit}} - -X github.com/openshift/osdctl/cmd.Version={{.Version}} - "-extldflags=-zrelro" # binary hardening: For further explanation look here: https://www.redhat.com/en/blog/hardening-elf-binaries-using-relocation-read-only-relro