Skip to content

Commit

Permalink
Enable darwin_arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cblecker committed Mar 28, 2022
1 parent 3019037 commit e589aaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e589aaf

Please sign in to comment.