forked from gastownhall/beads
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
239 lines (217 loc) · 5.47 KB
/
.goreleaser.yml
File metadata and controls
239 lines (217 loc) · 5.47 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# GoReleaser configuration for beads
# See https://goreleaser.com for documentation
version: 2
before:
hooks:
# Ensure dependencies are up to date
- go mod tidy
# Generate Windows PE version info resources (.syso files)
# Reduces antivirus false positives by embedding legitimate metadata
- ./scripts/gen-winres.sh
builds:
- id: bd-linux-amd64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=1
- CC=gcc
- CXX=g++
tags:
- gms_pure_go
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
hooks:
post:
- ./scripts/verify-cgo.sh "{{ .Path }}"
- id: bd-linux-arm64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
tags:
- gms_pure_go
goos:
- linux
goarch:
- arm64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
hooks:
post:
- ./scripts/verify-cgo.sh "{{ .Path }}"
- id: bd-android-arm64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=0
tags:
- gms_pure_go
goos:
- android
goarch:
- arm64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
# darwin-amd64 and darwin-arm64 are built by a dedicated macOS CI job
# (release.yml: goreleaser-macos) with CGO_ENABLED=1 for embedded Dolt support.
- id: bd-windows-amd64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
tags:
- gms_pure_go
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
- -buildmode=exe
hooks:
post:
- ./scripts/verify-cgo.sh "{{ .Path }}"
# Sign Windows executable with Authenticode certificate
# Requires WINDOWS_SIGNING_CERT_PFX_BASE64 and WINDOWS_SIGNING_CERT_PASSWORD secrets
- ./scripts/sign-windows.sh "{{ .Path }}"
- id: bd-windows-arm64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=0
tags:
- gms_pure_go
goos:
- windows
goarch:
- arm64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
- -buildmode=exe
hooks:
post:
# Sign Windows executable with Authenticode certificate
# Requires WINDOWS_SIGNING_CERT_PFX_BASE64 and WINDOWS_SIGNING_CERT_PASSWORD secrets
- ./scripts/sign-windows.sh "{{ .Path }}"
- id: bd-freebsd-amd64
main: ./cmd/bd
binary: bd
env:
- CGO_ENABLED=0
tags:
- gms_pure_go
goos:
- freebsd
goarch:
- amd64
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.Build={{.ShortCommit}}
- -X main.Commit={{.Commit}}
- -X main.Branch={{.Branch}}
archives:
- id: bd-archive
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- CHANGELOG.md
brews:
- name: bd
repository:
owner: gastownhall
name: homebrew-beads
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
directory: Formula
# Disabled: macOS archives are built by a separate CI job (goreleaser-macos),
# so goreleaser can't generate a complete formula. The update-homebrew-formula
# job in release.yml generates the formula after all archives are uploaded.
skip_upload: true
homepage: "https://github.com/steveyegge/beads"
description: "AI-supervised issue tracker for coding workflows"
license: "MIT"
install: |
bin.install "bd"
checksum:
name_template: "checksums.txt"
algorithm: sha256
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "Merge pull request"
- "Merge branch"
groups:
- title: "Features"
regexp: '^.*feat(\(\w+\))?:.*$'
order: 0
- title: "Bug Fixes"
regexp: '^.*fix(\(\w+\))?:.*$'
order: 1
- title: "Others"
order: 999
release:
github:
owner: gastownhall
name: beads
draft: false
prerelease: auto
name_template: "v{{.Version}}"
header: |
## beads v{{.Version}}
Pre-compiled binaries for Linux, macOS (Intel & Apple Silicon), Windows (AMD64 & ARM64), Android/Termux (ARM64), and FreeBSD.
### Installation
**Homebrew (macOS/Linux):**
```bash
brew install beads
```
**Quick Install (macOS/Linux/FreeBSD):**
```bash
curl -sSL https://raw.githubusercontent.com/steveyegge/beads/main/scripts/install.sh | bash
```
**Windows (PowerShell):**
```powershell
irm https://raw.githubusercontent.com/steveyegge/beads/main/install.ps1 | iex
```
**Manual Install:**
Download the appropriate binary for your platform below, extract it, and place it in your PATH.
# Announce the release
announce:
skip: false