From 9847e66aaf0bceb67fb2da572b3d67e9e9d0441c Mon Sep 17 00:00:00 2001 From: hamstah Date: Wed, 14 Dec 2016 18:24:42 +0000 Subject: [PATCH] Added script for static builds --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a390199 --- /dev/null +++ b/build.sh @@ -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