-
Notifications
You must be signed in to change notification settings - Fork 19
/
.goreleaser.yml
49 lines (45 loc) · 1.06 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: 2
project_name: pricefeeder
env:
- CGO_ENABLED=0
builds:
- id: darwin
main: .
binary: pricefeeder
goos:
- darwin
goarch:
- amd64
- arm64
env:
- CC_darwin_amd64=o64-clang
- CC_darwin_arm64=oa64-clang
- 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
flags:
- -mod=readonly
- -trimpath
ldflags:
- -s -w
- -X github.com/NibiruChain/pricefeeder/cmd.Version={{ .Version }}
- -X github.com/NibiruChain/pricefeeder/cmd.CommitHash={{ .Commit }}
- id: linux
main: .
binary: pricefeeder
goos:
- linux
goarch:
- amd64
- arm64
env:
- CC_linux_amd64=x86_64-linux-gnu-gcc
- CC_linux_arm64=aarch64-linux-gnu-gcc
- 'CC={{ index .Env (print "CC_" .Os "_" .Arch) }}'
flags:
- -mod=readonly
- -trimpath
ldflags:
- -s -w
- -X github.com/NibiruChain/pricefeeder/cmd.Version={{ .Version }}
- -X github.com/NibiruChain/pricefeeder/cmd.CommitHash={{ .Commit }}
universal_binaries:
- id: darwin