summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcrossbuild.bash6
1 files changed, 6 insertions, 0 deletions
diff --git a/crossbuild.bash b/crossbuild.bash
index 0f3963f..2510bb0 100755
--- a/crossbuild.bash
+++ b/crossbuild.bash
@@ -1,4 +1,6 @@
#!/bin/bash -eu
+#
+# Build on all supported architectures & operating systems
cd "$(dirname "$0")"
@@ -7,6 +9,10 @@ B="go build -tags without_openssl"
set -x
+export CGO_ENABLED=0
+
+GOOS=linux GOARCH=amd64 $B
+
# See https://github.com/golang/go/wiki/GoArm
GOOS=linux GOARCH=arm GOARM=7 $B
GOOS=linux GOARCH=arm64 $B