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