From 6e3c612500edbe152281e3394f83426082d356ee Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 20 Aug 2020 22:23:00 -0700 Subject: [PATCH 1/4] Add build for Linux on Arm64 --- build/common.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/common.go b/build/common.go index 208b07f47..671d84253 100644 --- a/build/common.go +++ b/build/common.go @@ -130,6 +130,11 @@ func (Build) Linux() error { return buildBackend(newBuildConfig("linux", "amd64")) } +// Linux builds the back-end plugin for Linux on arm64. +func (Build) LinuxArm64() error { + return buildBackend(newBuildConfig("linux", "arm64")) +} + // Windows builds the back-end plugin for Windows. func (Build) Windows() error { return buildBackend(newBuildConfig("windows", "amd64")) @@ -150,7 +155,7 @@ func (Build) Debug() error { // Backend build a production build for all platforms func (Build) Backend() { b := Build{} - mg.Deps(b.Linux, b.Windows, b.Darwin) + mg.Deps(b.Linux, b.Windows, b.Darwin, b.LinuxArm64) } // BuildAll builds production back-end components. From 38ac2756dbd979afc4723b5a711e97ae2bd2f48b Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 20 Aug 2020 22:37:02 -0700 Subject: [PATCH 2/4] Fix comment --- build/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common.go b/build/common.go index 671d84253..29be119e5 100644 --- a/build/common.go +++ b/build/common.go @@ -130,7 +130,7 @@ func (Build) Linux() error { return buildBackend(newBuildConfig("linux", "amd64")) } -// Linux builds the back-end plugin for Linux on arm64. +// LinuxArm64 builds the back-end plugin for Linux on arm64. func (Build) LinuxArm64() error { return buildBackend(newBuildConfig("linux", "arm64")) } From 4aa03e7545c68124e4339edcb7799d53d62fb038 Mon Sep 17 00:00:00 2001 From: Mikhail <47795110+mikhailredis@users.noreply.github.com> Date: Fri, 21 Aug 2020 06:50:43 -0700 Subject: [PATCH 3/4] Update build/common.go Co-authored-by: Arve Knudsen --- build/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/common.go b/build/common.go index 29be119e5..d11cfa7f7 100644 --- a/build/common.go +++ b/build/common.go @@ -130,8 +130,8 @@ func (Build) Linux() error { return buildBackend(newBuildConfig("linux", "amd64")) } -// LinuxArm64 builds the back-end plugin for Linux on arm64. -func (Build) LinuxArm64() error { +// LinuxARM64 builds the back-end plugin for Linux on ARM64. +func (Build) LinuxARM64() error { return buildBackend(newBuildConfig("linux", "arm64")) } From 2aa0edb0b59ebe5622069bb6411ce2661e3e7c2a Mon Sep 17 00:00:00 2001 From: Mikhail <47795110+mikhailredis@users.noreply.github.com> Date: Fri, 21 Aug 2020 06:50:56 -0700 Subject: [PATCH 4/4] Update build/common.go Co-authored-by: Arve Knudsen --- build/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common.go b/build/common.go index d11cfa7f7..2f5fc760c 100644 --- a/build/common.go +++ b/build/common.go @@ -155,7 +155,7 @@ func (Build) Debug() error { // Backend build a production build for all platforms func (Build) Backend() { b := Build{} - mg.Deps(b.Linux, b.Windows, b.Darwin, b.LinuxArm64) + mg.Deps(b.Linux, b.Windows, b.Darwin, b.LinuxARM64) } // BuildAll builds production back-end components.