Release script for precompiled binaries

This commit is contained in:
Tomás Senart
2013-09-08 20:45:06 +01:00
parent fecd4f8f25
commit e99979cccf
3 changed files with 17 additions and 22 deletions

11
release.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
for OS in "linux" "darwin"; do
for ARCH in "386" "amd64"; do
GOOS=$OS CGO_ENABLED=0 GOARCH=$ARCH go build -o vegeta
REV=$(git rev-parse HEAD)
ARCHIVE=vegeta-$OS-$ARCH-${REV:0:7}.tar.gz
tar -czf $ARCHIVE vegeta
echo $ARCHIVE
done
done