Skip to content

Commit

Permalink
added static build
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDieckmann committed Oct 5, 2020
1 parent 41a0e10 commit b8e13f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ env:

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

deploy:
provider: releases
Expand Down

0 comments on commit b8e13f3

Please sign in to comment.