From af6f6fba15bfbd962b1aaa16d4c3649fa0d9c928 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Fri, 14 May 2021 22:54:00 +0200 Subject: [PATCH] Build darwin/arm64 binaries for Apple M1 --- .github/workflows/tests.yml | 2 +- changelog/unreleased/issue-3377 | 6 ++++++ helpers/build-release-binaries/main.go | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/issue-3377 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1c1ac1340..dbffd412c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -200,7 +200,7 @@ jobs: - "freebsd/386 freebsd/amd64 freebsd/arm \ aix/ppc64 \ - darwin/amd64 \ + darwin/amd64 darwin/arm64 \ netbsd/386 netbsd/amd64 \ windows/386 windows/amd64 \ solaris/amd64" diff --git a/changelog/unreleased/issue-3377 b/changelog/unreleased/issue-3377 new file mode 100644 index 000000000..abbc354da --- /dev/null +++ b/changelog/unreleased/issue-3377 @@ -0,0 +1,6 @@ +Enhancement: Add release binaries for Apple Silicon + +We've added release binaries for macOS on Apple Silicon. + +https://github.com/restic/restic/issues/3377 +https://github.com/restic/restic/pull/3394 diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index f0b3592a3..d1ea3cecb 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -224,7 +224,7 @@ func buildTargets(sourceDir, outputDir string, targets map[string][]string) { // ATTENTION: the list of architectures must be in sync with .github/workflows/tests.yml! var defaultBuildTargets = map[string][]string{ "aix": {"ppc64"}, - "darwin": {"amd64"}, + "darwin": {"amd64", "arm64"}, "freebsd": {"386", "amd64", "arm"}, "linux": {"386", "amd64", "arm", "arm64", "ppc64le", "mips", "mipsle", "mips64", "mips64le"}, "netbsd": {"386", "amd64"},