Skip to content

Commit

Permalink
Added script for static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
hamstah committed Dec 14, 2016
1 parent 0c3b9ed commit 9847e66
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -e

find . -name "main.go" | while read f; do
echo "Building ${f}"
cd $(dirname ${f})
CGO_ENABLED=0 go build -a -installsuffix cgo
cd - > /dev/null
done

0 comments on commit 9847e66

Please sign in to comment.