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.
2 parents c39e1df + 12af9db commit c1f8961Copy full SHA for c1f8961
ci/build.sh
@@ -14,7 +14,7 @@ mkdir -p bin
14
15
build(){
16
tmpdir=$(mktemp -d)
17
- go build -ldflags "-X main.version=${tag}" -o "$tmpdir/coder" ../cmd/coder
+ go build -ldflags "-s -w -X main.version=${tag}" -o "$tmpdir/coder" ../cmd/coder
18
19
pushd "$tmpdir"
20
tarname="coder-cli-$GOOS-$GOARCH.tar.gz"
@@ -25,5 +25,14 @@ build(){
25
rm -rf "$tmpdir"
26
}
27
28
+# Darwin builds do not work from Linux, so only try to build them from Darwin.
29
+# See: https://github.com/cdr/coder-cli/issues/20
30
+if [[ "$(uname)" -eq "Darwin" ]]; then
31
+ GOOS=linux build
32
+ CGO_ENABLED=1 GOOS=darwin build
33
+ exit 0
34
+fi
35
+
36
+echo "Warning: Darwin builds don't work on Linux."
37
+echo "Please use an OSX machine to build Darwin tars."
38
GOOS=linux build
-# GOOS=darwin build
0 commit comments