-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
131 lines (119 loc) · 2.73 KB
/
.goreleaser.yaml
File metadata and controls
131 lines (119 loc) · 2.73 KB
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: 2
project_name: Oasis CLI
before:
hooks:
- go mod tidy
- mkdir -p completions
- sh -c "go run . completion bash > completions/oasis.bash"
- sh -c "go run . completion zsh > completions/oasis.zsh"
- sh -c "go run . completion fish > completions/oasis.fish"
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
- <<: *build-common
id: oasis-windows-amd64
binary: oasis
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
goos:
- windows
goarch:
- amd64
archives:
- name_template: "{{replace .ProjectName \" \" \"_\" | tolower}}_{{.Version}}_{{.Os}}_{{.Arch}}"
wrap_in_directory: true
ids:
- oasis-linux-amd64
- oasis-linux-arm64
- oasis-darwin-universal
- oasis-windows-amd64
format_overrides:
- goos: windows
formats: [ 'zip' ]
files:
- completions/*
checksum:
name_template: SHA256SUMS-{{.Version}}.txt
algorithm: sha256
snapshot:
version_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 }}