-
Notifications
You must be signed in to change notification settings - Fork 96
/
.goreleaser.yml
81 lines (77 loc) · 2.11 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
# .goreleaser.yml
project_name: picad
env:
- CGO_ENABLED=1
builds:
- id: linux
main: ./cmd/picad
binary: picad
hooks:
pre:
- cmd: bash 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:
- -X github.com/cosmos/cosmos-sdk/version.Name=pica
- -X github.com/cosmos/cosmos-sdk/version.AppName=picad
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc"
- -w -s
- -linkmode=external
- -extldflags '-static -lm -lbz2'
tags:
- netgo
- ledger
- muslc
- static
- static_wasm
# - id: darwin
# main: ./cmd/centaurid
# binary: centaurid
# hooks:
# pre:
# - cmd: bash 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:
# - -X github.com/cosmos/cosmos-sdk/version.Name=centauri
# - -X github.com/cosmos/cosmos-sdk/version.AppName=centaurid
# - -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
# - -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
# - -X "github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger,muslc"
# - -w -s
# - -linkmode=external
# - -extldflags '-static -lm -lbz2'
# tags:
# - netgo
# - ledger
# - muslc
# - static
# - static_wasm