Skip to content

Commit

Permalink
fix: Multi builds
Browse files Browse the repository at this point in the history
  • Loading branch information
yoheimuta committed Nov 16, 2019
1 parent 8b317c0 commit 385dad5
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,30 @@ before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/protolint/main.go
binary: protolint
goos:
- windows
- darwin
- linux
ldflags:
- -s -w -X github.com/yoheimuta/protolint/internal/cmd.version={{.Version}} -X github.com/yoheimuta/protolint/internal/cmd.revision={{.ShortCommit}}
- env:
- CGO_ENABLED=0
main: ./cmd/protoc-gen-protolint/main.go
binary: protoc-gen-protolint
goos:
- windows
- darwin
- linux
ldflags:
- -s -w -X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.version={{.Version}} -X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.revision={{.ShortCommit}}
-
id: protolint
env:
- CGO_ENABLED=0
main: ./cmd/protolint/main.go
binary: protolint
goos:
- windows
- darwin
- linux
ldflags:
- -s -w -X github.com/yoheimuta/protolint/internal/cmd.version={{.Version}} -X github.com/yoheimuta/protolint/internal/cmd.revision={{.ShortCommit}}
-
id: protoc-gen-protolint
env:
- CGO_ENABLED=0
main: ./cmd/protoc-gen-protolint/main.go
binary: protoc-gen-protolint
goos:
- windows
- darwin
- linux
ldflags:
- -s -w -X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.version={{.Version}} -X github.com/yoheimuta/protolint/internal/cmd/protocgenprotolint.revision={{.ShortCommit}}
archive:
replacements:
darwin: Darwin
Expand Down

0 comments on commit 385dad5

Please sign in to comment.