-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
109 lines (98 loc) · 2.19 KB
/
.goreleaser.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
project_name: Oasis CLI
before:
hooks:
- go mod tidy
universal_binaries:
- id: oasis-darwin-universal
ids:
- oasis-darwin-amd64
- oasis-darwin-arm64
replace: true
name_template: oasis
env:
- CGO_ENABLED=1
builds:
- &build-common
id: oasis-linux-amd64
binary: oasis
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
goos:
- linux
goarch:
- amd64
flags:
- -trimpath
ldflags:
- -buildid=
- "{{.Env.GOLDFLAGS_VERSION}}"
- <<: *build-common
id: oasis-linux-arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
goos:
- linux
goarch:
- arm64
- <<: *build-common
id: oasis-darwin-amd64
env:
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
- <<: *build-common
id: oasis-darwin-arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
goos:
- darwin
goarch:
- arm64
archives:
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
wrap_in_directory: true
builds:
- oasis-linux-amd64
- oasis-linux-arm64
- oasis-darwin-universal
checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
use: github
filters:
exclude:
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: Breaking changes
regexp: "^.*breaks[(\\w)]*:+.*$"
order: 0
- title: New Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 5
- title: Bug fixes
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Dependencies updates
regexp: "^.*deps[(\\w)]*:+.*$"
order: 500
- title: Other changes
order: 999
release:
name_template: "{{.ProjectName}} {{.Version}}"
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1.
prerelease: auto
footer: |
**Full Changelog**: https://github.com/oasisprotocol/cli/compare/{{ .PreviousTag }}...{{ .Tag }}