Build darwin/arm64 binaries for Apple M1

This commit is contained in:
Michael Eischer 2021-05-14 22:54:00 +02:00
parent 6d8ceefd67
commit af6f6fba15
3 changed files with 8 additions and 2 deletions

View file

@ -200,7 +200,7 @@ jobs:
- "freebsd/386 freebsd/amd64 freebsd/arm \ - "freebsd/386 freebsd/amd64 freebsd/arm \
aix/ppc64 \ aix/ppc64 \
darwin/amd64 \ darwin/amd64 darwin/arm64 \
netbsd/386 netbsd/amd64 \ netbsd/386 netbsd/amd64 \
windows/386 windows/amd64 \ windows/386 windows/amd64 \
solaris/amd64" solaris/amd64"

View file

@ -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

View file

@ -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! // ATTENTION: the list of architectures must be in sync with .github/workflows/tests.yml!
var defaultBuildTargets = map[string][]string{ var defaultBuildTargets = map[string][]string{
"aix": {"ppc64"}, "aix": {"ppc64"},
"darwin": {"amd64"}, "darwin": {"amd64", "arm64"},
"freebsd": {"386", "amd64", "arm"}, "freebsd": {"386", "amd64", "arm"},
"linux": {"386", "amd64", "arm", "arm64", "ppc64le", "mips", "mipsle", "mips64", "mips64le"}, "linux": {"386", "amd64", "arm", "arm64", "ppc64le", "mips", "mipsle", "mips64", "mips64le"},
"netbsd": {"386", "amd64"}, "netbsd": {"386", "amd64"},