We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f279f2f commit c3fe748Copy full SHA for c3fe748
etc/compile_check.sh
@@ -0,0 +1,20 @@
1
+#!/usr/bin/env bash
2
+set -e # exit when any command fails
3
+set -x # show all commands being run
4
+
5
+ARCHITECTURES=("386" "arm" "arm64" "ppc64le" "s390x")
6
7
+go version
8
9
+# Standard build
10
+go build ./...
11
12
+# Check build with tags if specified.
13
+if [ -n "${BUILD_TAGS:-}" ]; then
14
+ go build ${BUILD_TAGS} ./...
15
+fi
16
17
+# Check build with various architectures.
18
+for ARCH in "${ARCHITECTURES[@]}"; do
19
+ GOOS=linux GOARCH=$ARCH go build ./...
20
+done
0 commit comments