go: build for all supported OSs
This commit is contained in:
parent
807a9b1aa8
commit
486cda309f
|
@ -36,21 +36,25 @@ do_build() {
|
|||
|
||||
export GOROOT=$PWD
|
||||
export GOROOT_FINAL="/usr/lib/go"
|
||||
export GOOS=linux
|
||||
export GOOS=
|
||||
export GOARCH=
|
||||
export GOPATH=/tmp
|
||||
mkdir -p $GOPATH/src
|
||||
|
||||
cd src
|
||||
|
||||
# TODO We could very well also build windows and darwin
|
||||
# cross-compilers here, at no added complexity
|
||||
|
||||
# Build ARM, x86 and x86_64 compilers
|
||||
for arch in arm 386 amd64; do
|
||||
export GOARCH=$arch
|
||||
bash make.bash --no-clean
|
||||
GOOS=linux
|
||||
GOARCH=arm
|
||||
bash make.bash --no-clean
|
||||
for os in darwin freebsd linux windows; do
|
||||
for arch in 386 amd64; do
|
||||
GOARCH=$arch
|
||||
GOOS=$os
|
||||
bash make.bash --no-clean
|
||||
done
|
||||
done
|
||||
|
||||
GOOS=linux
|
||||
GOARCH=$targetarch
|
||||
|
||||
hg clone -u release-branch.go${version} \
|
||||
|
|
Loading…
Reference in New Issue
Block a user