Skip to content

Commit b8e13f3

Browse files
added static build
1 parent 41a0e10 commit b8e13f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ env:
88

99
before_deploy:
1010
- mkdir -p release
11-
- "GOOS=linux GOARCH=amd64 go build -o release/datahandlercli-v$TRAVIS_TAG-linux-amd64"
12-
- "GOOS=darwin GOARCH=amd64 go build -o release/datahandlercli-v$TRAVIS_TAG-darwin-amd64"
13-
- "GOOS=windows GOARCH=amd64 go build -o release/datahandlercli-v$TRAVIS_TAG-windows-amd64"
11+
- "GOOS=linux GOARCH=amd64 go build -a -ldflags '-w -extldflags \"-static\"' -o release/datahandlercli-v$TRAVIS_TAG-linux-amd64"
12+
- "GOOS=darwin GOARCH=amd64 go build -a -ldflags '-w -extldflags \"-static\"' -o release/datahandlercli-v$TRAVIS_TAG-darwin-amd64"
13+
- "GOOS=windows GOARCH=amd64 go build -a -ldflags '-w -extldflags \"-static\"' -o release/datahandlercli-v$TRAVIS_TAG-windows-amd64"
1414

1515
deploy:
1616
provider: releases

0 commit comments

Comments
 (0)