|
| 1 | +--- |
| 2 | +project_name: ethermint |
| 3 | + |
| 4 | +env: |
| 5 | + - GO111MODULE=on |
| 6 | + |
1 | 7 | before:
|
2 | 8 | hooks:
|
3 |
| - - go mod download |
| 9 | + - go mod tidy |
4 | 10 |
|
5 | 11 | builds:
|
6 |
| - - id: "ethermintd-darwin" |
7 |
| - main: ./cmd/ethermintd |
8 |
| - binary: bin/ethermintd |
9 |
| - env: |
10 |
| - - CGO_ENABLED=1 |
11 |
| - - CC=o64-clang |
12 |
| - - CXX=o64-clang++ |
13 |
| - goos: |
14 |
| - - darwin |
15 |
| - goarch: |
16 |
| - - amd64 |
| 12 | + - main: ./cmd/ethermintd |
| 13 | + id: "ethermintd" |
| 14 | + binary: ethermintd |
| 15 | + mod_timestamp: "{{ .CommitTimestamp }}" |
17 | 16 | flags:
|
18 |
| - - -tags=cgo |
19 |
| - ldflags: |
20 |
| - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=ethermint -X github.com/cosmos/cosmos-sdk/version.AppName=ethermintd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} |
21 |
| - - id: "ethermintd-darwin-arm64" |
22 |
| - main: ./cmd/ethermintd |
23 |
| - binary: bin/ethermintd |
| 17 | + - -tags=netgo ledger |
| 18 | + - -trimpath |
24 | 19 | env:
|
25 |
| - - CGO_ENABLED=1 |
26 |
| - - CC=oa64-clang |
27 |
| - - CXX=oa64-clang++ |
28 |
| - goos: |
29 |
| - - darwin |
30 |
| - goarch: |
31 |
| - - arm64 |
32 |
| - flags: |
33 |
| - - -tags=cgo |
| 20 | + - CGO_ENABLED=0 |
34 | 21 | ldflags:
|
35 |
| - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=ethermint -X github.com/cosmos/cosmos-sdk/version.AppName=ethermintd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} |
36 |
| - - id: "ethermintd-linux" |
37 |
| - main: ./cmd/ethermintd |
38 |
| - binary: bin/ethermintd |
39 |
| - env: |
40 |
| - - CGO_ENABLED=1 |
41 |
| - - CC=gcc |
42 |
| - - CXX=g++ |
| 22 | + - -s -w -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X github.com/cosmos/cosmos-sdk/version.Name=ethermint -X github.com/cosmos/cosmos-sdk/version.AppName=ethermintd -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 -X github.com/tendermint/tendermint/version.TMCoreSemVer={{ .Env.TM_VERSION }} |
43 | 23 | goos:
|
| 24 | + - darwin |
44 | 25 | - linux
|
45 | 26 | goarch:
|
46 | 27 | - amd64
|
47 |
| - flags: |
48 |
| - - -tags=cgo |
49 |
| - ldflags: |
50 |
| - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=ethermint -X github.com/cosmos/cosmos-sdk/version.AppName=ethermintd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} |
51 |
| - - id: "ethermintd-linux-arm64" |
52 |
| - main: ./cmd/ethermintd |
53 |
| - binary: bin/ethermintd |
54 |
| - env: |
55 |
| - - CGO_ENABLED=1 |
56 |
| - - CC=aarch64-linux-gnu-gcc |
57 |
| - - CXX=aarch64-linux-gnu-g++ |
58 |
| - goos: |
59 |
| - - linux |
60 |
| - goarch: |
| 28 | + - arm |
61 | 29 | - arm64
|
62 |
| - flags: |
63 |
| - - -tags=cgo |
64 |
| - ldflags: |
65 |
| - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=ethermint -X github.com/cosmos/cosmos-sdk/version.AppName=ethermintd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} |
66 |
| - - id: "ethermintd-windows" |
67 |
| - main: ./cmd/ethermintd |
68 |
| - binary: bin/ethermintd |
69 |
| - env: |
70 |
| - - CGO_ENABLED=1 |
71 |
| - - CC=x86_64-w64-mingw32-gcc |
72 |
| - - CXX=x86_64-w64-mingw32-g++ |
73 |
| - goos: |
74 |
| - - windows |
75 |
| - goarch: |
76 |
| - - amd64 |
77 |
| - flags: |
78 |
| - - -tags=cgo |
79 |
| - - -buildmode=exe |
80 |
| - ldflags: |
81 |
| - - -s -w -X github.com/cosmos/cosmos-sdk/version.Name=ethermint -X github.com/cosmos/cosmos-sdk/version.AppName=ethermintd -X github.com/cosmos/cosmos-sdk/version.Version={{.Version}} -X github.com/cosmos/cosmos-sdk/version.Commit={{.Commit}} |
82 | 30 |
|
83 | 31 | archives:
|
84 |
| -- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' |
85 |
| - replacements: |
86 |
| - darwin: Darwin |
87 |
| - linux: Linux |
88 |
| - windows: Windows |
89 |
| - amd64: x86_64 |
90 |
| - format_overrides: |
91 |
| - - goos: windows |
92 |
| - format: zip |
93 |
| - builds: |
94 |
| - - ethermintd-darwin |
95 |
| - - ethermintd-darwin-arm64 |
96 |
| - - ethermintd-windows |
97 |
| - - ethermintd-linux |
98 |
| - - ethermintd-linux-arm64 |
99 |
| - |
| 32 | + - format: tar.gz |
| 33 | + wrap_in_directory: true |
| 34 | + format_overrides: |
| 35 | + - goos: windows |
| 36 | + format: zip |
| 37 | + name_template: "{{ .Binary }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" |
| 38 | + files: |
| 39 | + - LICENSE |
| 40 | + - README.md |
| 41 | + |
| 42 | +release: |
| 43 | + github: |
| 44 | + owner: tharsis |
| 45 | + name: ethermint |
| 46 | + name_template: "v{{.Version}}" |
| 47 | + |
100 | 48 | checksum:
|
101 |
| - name_template: 'checksums.txt' |
102 |
| -changelog: |
103 |
| - sort: asc |
104 |
| - filters: |
105 |
| - exclude: |
106 |
| - - '^docs:' |
107 |
| - - '^test:' |
| 49 | + name_template: SHA256SUMS-v{{.Version}}.txt |
| 50 | + algorithm: sha256 |
| 51 | + |
108 | 52 | snapshot:
|
109 |
| - name_template: "{{ .Tag }}-next" |
| 53 | + name_template: SNAPSHOT-{{ .Commit }} |
| 54 | + |
| 55 | +changelog: |
| 56 | + skip: true |
0 commit comments