Skip to content

Commit

Permalink
🏁 fix windows build command
Browse files Browse the repository at this point in the history
  • Loading branch information
nlepage committed Oct 4, 2019
1 parent be97403 commit ea6d103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
- run: go mod download
- run: packr
- run: go test -mod=readonly .
- run: "CGO_ENABLED=0 go build -mod=readonly -ldflags \"-extldflags \\\"-static\\\" -X github.com/Zenika/marcel/version.Version=$CIRCLE_BRANCH -X github.com/Zenika/marcel/version.Revision=$CIRCLE_SHA1\" -tags \"osusergo netgo\" -o marcel"
- run: "CGO_ENABLED=0 go build -mod=readonly -tags \"osusergo netgo\" -ldflags \"-extldflags \\\"-static\\\" -X github.com/Zenika/marcel/version.Version=$CIRCLE_BRANCH -X github.com/Zenika/marcel/version.Revision=$CIRCLE_SHA1\" -o marcel"
- persist_to_workspace:
root: .
paths:
Expand All @@ -99,7 +99,7 @@ jobs:
- run: go mod download
- run: go test -mod=readonly .
- run: "CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod=readonly -tags \"osusergo netgo nopackr\" -ldflags \"-extldflags \\\"-static\\\" -X github.com/Zenika/marcel/version.Version=$CIRCLE_TAG -X github.com/Zenika/marcel/version.Revision=$CIRCLE_SHA1\" -o marcel_linux_amd64"
- run: "CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -mod=readonly -tags \"osusergo netgo nopackr\" -ldflags -H=windowsgui \"-extldflags \\\"-static\\\" -X github.com/Zenika/marcel/version.Version=$CIRCLE_TAG -X github.com/Zenika/marcel/version.Revision=$CIRCLE_SHA1\" -o marcel_windows_amd64.exe"
- run: "CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -mod=readonly -tags \"osusergo netgo nopackr\" -ldflags \"-H=windowsgui -extldflags \\\"-static\\\" -X github.com/Zenika/marcel/version.Version=$CIRCLE_TAG -X github.com/Zenika/marcel/version.Revision=$CIRCLE_SHA1\" -o marcel_windows_amd64.exe"
- run: "CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -mod=readonly -tags \"nopackr\" -ldflags \"-s -extldflags \\\"-sectcreate __TEXT __info_plist Info.plist\\\" -X github.com/Zenika/marcel/version.Version=$CIRCLE_TAG -X github.com/Zenika/marcel/version.Revision=$CIRCLE_SHA1\" -o marcel_darwin_amd64"
- persist_to_workspace:
root: .
Expand Down

0 comments on commit ea6d103

Please sign in to comment.