Skip to content

Instantly share code, notes, and snippets.

@nilslice
Forked from treeder/build.sh
Last active August 29, 2015 14:24
Show Gist options
  • Save nilslice/3a48c46f3efa8d6db8ae to your computer and use it in GitHub Desktop.
Save nilslice/3a48c46f3efa8d6db8ae to your computer and use it in GitHub Desktop.
docker run --rm -it -v "$GOPATH":/go -w /go/src/github.com/iron-io/ironcli golang:1.4.2-cross sh -c '
for GOOS in darwin linux windows; do
for GOARCH in 386 amd64; do
echo "Building $GOOS-$GOARCH"
export GOOS=$GOOS
export GOARCH=$GOARCH
go build -o bin/ironcli-$GOOS-$GOARCH
done
done
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment