forked from NibiruChain/nibiru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
86 lines (82 loc) · 2.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
project_name: nibid
env:
- CGO_ENABLED=1
builds:
- id: darwin
main: ./cmd/nibid
binary: nibid
hooks:
pre:
- cmd: bash contrib/scripts/release_pre_darwin.sh
output: false # enable for debug
env:
- TARGET={{ .Target }}
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/cosmos/cosmos-sdk/version.Name=nibiru
- -X github.com/cosmos/cosmos-sdk/version.AppName=nibid
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb
- -linkmode=external
- -extldflags '-lrocksdb -lstdc++ -ldl -lz -lbz2'
tags:
- netgo
- osusergo
- ledger
- static
- static_wasm
- rocksdb
- grocksdb_no_link
- id: linux
main: ./cmd/nibid
binary: nibid
hooks:
pre:
- cmd: bash contrib/scripts/release_pre_linux.sh
output: false # enable for debug
env:
- TARGET={{ .Target }}
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/cosmos/cosmos-sdk/version.Name=nibiru
- -X github.com/cosmos/cosmos-sdk/version.AppName=nibid
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb
- -linkmode=external
- -extldflags '-static -lrocksdb -lstdc++ -lm -ldl -lpthread'
tags:
- netgo
- osusergo
- ledger
- muslc
- rocksdb
- static
- grocksdb_no_link
universal_binaries:
- id: darwin