aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-04 19:48:20 +0800
committerFelix Lange <fjl@twurst.com>2016-11-04 19:48:20 +0800
commitafe41de6b3e64aeef3a094bf43d638538b59e7d0 (patch)
tree5fa1f2ab9041c2dea5226ee566cc86ea5ac79b4c /build
parent2ad5dba50a65e7471d24da7a258087ff97e00f36 (diff)
downloadgo-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.tar
go-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.tar.gz
go-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.tar.bz2
go-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.tar.lz
go-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.tar.xz
go-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.tar.zst
go-tangerine-afe41de6b3e64aeef3a094bf43d638538b59e7d0.zip
travis: build to all supported linux architectures (#3235)
Diffstat (limited to 'build')
-rw-r--r--build/ci.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/ci.go b/build/ci.go
index c6c6f61c9..f3882a1e7 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -158,6 +158,13 @@ func doInstall(cmdline []string) {
build.MustRun(goinstall)
return
}
+ // If we are cross compiling to ARMv5 ARMv6 or ARMv7, clean any prvious builds
+ if *arch == "arm" {
+ os.RemoveAll(filepath.Join(runtime.GOROOT(), "pkg", runtime.GOOS+"_arm"))
+ for _, path := range filepath.SplitList(build.GOPATH()) {
+ os.RemoveAll(filepath.Join(path, "pkg", runtime.GOOS+"_arm"))
+ }
+ }
// Seems we are cross compiling, work around forbidden GOBIN
goinstall := goToolArch(*arch, "install", buildFlags(env)...)
goinstall.Args = append(goinstall.Args, "-v")
@@ -318,6 +325,9 @@ func doArchive(cmdline []string) {
func archiveBasename(arch string, env build.Environment) string {
platform := runtime.GOOS + "-" + arch
+ if arch == "arm" {
+ platform += os.Getenv("GOARM")
+ }
archive := platform + "-" + build.VERSION()
if isUnstableBuild(env) {
archive += "-unstable"