Skip to content

Commit

Permalink
build.sh strip debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
assafmo committed Apr 19, 2020
1 parent 8bb65fa commit bb09591
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
set -e
set -v

go get -v -u -t -d ./...

go test -race -cover ./...

rm -rf release
Expand All @@ -15,9 +13,9 @@ mkdir -p release
VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))

# https://golang.org/doc/install/source#environment
GOOS=linux GOARCH=amd64 go build -o "release/xioc-linux64-${VERSION}"
GOOS=windows GOARCH=amd64 go build -o "release/xioc-win64-${VERSION}.exe"
GOOS=darwin GOARCH=amd64 go build -o "release/xioc-macos64-${VERSION}"
GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o "release/xioc-linux64-${VERSION}"
GOOS=windows GOARCH=amd64 go build -ldflags '-s -w' -o "release/xioc-win64-${VERSION}.exe"
GOOS=darwin GOARCH=amd64 go build -ldflags '-s -w' -o "release/xioc-macos64-${VERSION}"

(
# zip
Expand Down

0 comments on commit bb09591

Please sign in to comment.