From 16d4ccd545d165c519b7f2bd75082233a7b41b0e Mon Sep 17 00:00:00 2001 From: Godwhoa Date: Tue, 20 Feb 2018 00:50:27 +0530 Subject: [PATCH] Try to fix arm build --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8f2ef14..8ca30fe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,13 @@ language: go go: - 1.9 before_install: + - sudo apt-get install gcc-4.8-arm-linux-gnueabihf - go get -u github.com/golang/dep/cmd/dep install: - dep ensure script: - GOOS=linux go build -o oodle_linux -a -tags netgo -ldflags '-extldflags "-static"' - - GOOS=linux GOARCH=arm GOARM=7 go build -o oodle_linux_armv7 -a -tags netgo -ldflags '-extldflags "-static"' + - GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabihf-gcc-4.8 CGO_ENABLED=1 go build -o oodle_linux_armv7 -a -tags netgo -ldflags "-linkmode external -extldflags -static" deploy: provider: releases api_key: