Skip to content

Commit

Permalink
Merge pull request #20 from k1LoW/fix-goreleaser-cgo
Browse files Browse the repository at this point in the history
Fix goreleaser.yml for  for CGO_ENABLED=1
  • Loading branch information
k1LoW authored Mar 16, 2019
2 parents 1b18e7b + 6b602e5 commit d6f8398
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@ before:
- go mod download
- go mod tidy
builds:
- goos:
- linux
- darwin
- binary: hrv
main: ./cmd/hrv/main.go
ldflags:
- -s -w -X github.com/k1LoW/harvest.version={{.Version}} -X github.com/k1LoW/harvest.commit={{.FullCommit}} -X github.com/k1LoW/harvest.date={{.Date}} -X github.com/k1LoW/harvest/version.Version={{.Version}}
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
- binary: hrv
main: ./cmd/hrv/main.go
binary: hrv
ldflags:
- -s -w -X github.com/k1LoW/harvest.version={{.Version}} -X github.com/k1LoW/harvest.commit={{.FullCommit}} -X github.com/k1LoW/harvest.date={{.Date}} -X github.com/k1LoW/harvest/version.Version={{.Version}}
env:
- CGO_ENABLED=1
goos:
- linux
archive:
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
Expand Down

0 comments on commit d6f8398

Please sign in to comment.