2017-05-11 18:52:17 -04:00
|
|
|
#!/usr/bin/env bash
|
2017-05-25 12:41:56 -04:00
|
|
|
#
|
|
|
|
# Build a binary for all supported platforms
|
|
|
|
#
|
2017-05-09 12:38:23 -04:00
|
|
|
|
2017-05-11 18:52:17 -04:00
|
|
|
set -eu -o pipefail
|
|
|
|
|
2017-05-15 17:59:51 -04:00
|
|
|
BUILDDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2017-05-11 18:52:17 -04:00
|
|
|
|
2017-05-25 12:41:56 -04:00
|
|
|
echo "Building binaries for all platforms"
|
2017-05-12 11:30:30 -04:00
|
|
|
SHELL=/bin/bash parallel ::: \
|
2017-05-12 12:07:57 -04:00
|
|
|
"$BUILDDIR/windows" \
|
|
|
|
"$BUILDDIR/osx" \
|
2017-05-25 12:41:56 -04:00
|
|
|
"GOOS=linux GOARCH=amd64 $BUILDDIR/binary" \
|
|
|
|
"GOOS=linux GOARCH=arm $BUILDDIR/binary" \
|
|
|
|
"GOOS=linux GOARCH=ppc64le $BUILDDIR/binary" \
|
|
|
|
"GOOS=linux GOARCH=s390x $BUILDDIR/binary" \
|
2017-05-12 12:07:57 -04:00
|
|
|
;
|