From 96db562a6eed9b7ab33c59ad50d3417c3da06083 Mon Sep 17 00:00:00 2001 From: Lucas Teske Date: Sun, 10 Feb 2019 20:20:57 -0200 Subject: [PATCH] Added OS Based go get for gox --- travis-binary-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/travis-binary-build.sh b/travis-binary-build.sh index 35f9784..52b8337 100755 --- a/travis-binary-build.sh +++ b/travis-binary-build.sh @@ -23,7 +23,13 @@ then do echo "Building $i" cd $i + echo "Running go get for linux" go get -v + for os in $BUILD_OS + do + echo "Running go get for $os" + GOOS=$os go get -v + done mkdir -p out echo "Building for Linux / ${BUILD_LINUX_ARCH}" gox -output "out/remoteSigner-{{.Dir}}-{{.OS}}-{{.Arch}}" -arch="${BUILD_LINUX_ARCH}" -os="linux"