From 47aa093a1623e1e05b5e2330556fc53e4d347f83 Mon Sep 17 00:00:00 2001 From: Aditya Sharma Date: Tue, 30 Nov 2021 08:27:29 -0800 Subject: [PATCH] Build for darwin_arm64 (#4409) Signed-off-by: Aditya Sharma --- .goreleaser.yml | 4 +--- Makefile | 8 ++++---- changelogs/unreleased/4409-epk | 1 + 3 files changed, 6 insertions(+), 7 deletions(-) create mode 100644 changelogs/unreleased/4409-epk diff --git a/.goreleaser.yml b/.goreleaser.yml index fb6ee34b8..e7fa81f58 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -27,11 +27,9 @@ builds: - arm64 - ppc64le ignore: - # don't build arm/arm64 for darwin or windows + # don't build arm for darwin and arm/arm64 for windows - goos: darwin goarch: arm - - goos: darwin - goarch: arm64 - goos: darwin goarch: ppc64le - goos: windows diff --git a/Makefile b/Makefile index 0a8e4ed31..c17e24147 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,7 @@ endef # The version of restic binary to be downloaded RESTIC_VERSION ?= 0.12.1 -CLI_PLATFORMS ?= linux-amd64 linux-arm linux-arm64 darwin-amd64 windows-amd64 linux-ppc64le +CLI_PLATFORMS ?= linux-amd64 linux-arm linux-arm64 darwin-amd64 darwin-arm64 windows-amd64 linux-ppc64le BUILDX_PLATFORMS ?= $(subst -,/,$(ARCH)) BUILDX_OUTPUT_TYPE ?= docker @@ -338,9 +338,9 @@ changelog: # PUBLISH=false \ # make release # -# To run the release, which will publish a *DRAFT* GitHub release in github.com/vmware-tanzu/velero +# To run the release, which will publish a *DRAFT* GitHub release in github.com/vmware-tanzu/velero # (you still need to review/publish the GitHub release manually): -# GITHUB_TOKEN=your-github-token \ +# GITHUB_TOKEN=your-github-token \ # RELEASE_NOTES_FILE=changelogs/CHANGELOG-1.2.md \ # PUBLISH=true \ # make release @@ -359,7 +359,7 @@ serve-docs: build-image-hugo -it -p 1313:1313 \ $(HUGO_IMAGE) \ hugo server --bind=0.0.0.0 --enableGitInfo=false -# gen-docs generates a new versioned docs directory under site/content/docs. +# gen-docs generates a new versioned docs directory under site/content/docs. # Please read the documentation in the script for instructions on how to use it. gen-docs: @hack/release-tools/gen-docs.sh diff --git a/changelogs/unreleased/4409-epk b/changelogs/unreleased/4409-epk new file mode 100644 index 000000000..be9792451 --- /dev/null +++ b/changelogs/unreleased/4409-epk @@ -0,0 +1 @@ +Build for darwin-arm64