From ec91b80f09507e936aac83e6e00690ec2c9ce2e2 Mon Sep 17 00:00:00 2001 From: Rafael Peria de Sene Date: Tue, 16 Jul 2019 15:37:38 -0300 Subject: [PATCH] Add support for ppc64le This commit adds support for cross-compiling Restic for ppc64le as part of the release process. Add a new file: changelog/unreleased/issue-2277 Modifies: helpers/build-release-binaries/main.go Modifies: run_integration_tests.go --- changelog/unreleased/issue-2277 | 5 +++++ helpers/build-release-binaries/main.go | 2 +- run_integration_tests.go | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/issue-2277 diff --git a/changelog/unreleased/issue-2277 b/changelog/unreleased/issue-2277 new file mode 100644 index 000000000..d609b456c --- /dev/null +++ b/changelog/unreleased/issue-2277 @@ -0,0 +1,5 @@ +Enhancement: Add support for ppc64le + +Adds support for ppc64le, the processor architecture from IBM. + +https://github.com/restic/restic/issues/2277 diff --git a/helpers/build-release-binaries/main.go b/helpers/build-release-binaries/main.go index f9e25e447..fecc621eb 100644 --- a/helpers/build-release-binaries/main.go +++ b/helpers/build-release-binaries/main.go @@ -251,7 +251,7 @@ func buildTargets(sourceDir, outputDir string, targets map[string][]string) { var defaultBuildTargets = map[string][]string{ "darwin": []string{"386", "amd64"}, "freebsd": []string{"386", "amd64", "arm"}, - "linux": []string{"386", "amd64", "arm", "arm64"}, + "linux": []string{"386", "amd64", "arm", "arm64", "ppc64le"}, "openbsd": []string{"386", "amd64"}, "windows": []string{"386", "amd64"}, } diff --git a/run_integration_tests.go b/run_integration_tests.go index 8d55055b3..e773a9d9f 100644 --- a/run_integration_tests.go +++ b/run_integration_tests.go @@ -218,6 +218,7 @@ func (env *TravisEnvironment) Prepare() error { "openbsd/386", "openbsd/amd64", "netbsd/386", "netbsd/amd64", "linux/arm", "freebsd/arm", + "linux/ppc64le", } if os.Getenv("RESTIC_BUILD_SOLARIS") == "0" {