-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
352 lines (330 loc) · 8.55 KB
/
.goreleaser.yaml
File metadata and controls
352 lines (330 loc) · 8.55 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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
project_name: pluto
builds:
- id: pluto-linux
main: .
binary: pluto
goos:
- linux
goarch:
- amd64
skip: '{{ or (ne .Runtime.Goos "linux") (ne .Runtime.Goarch "amd64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: plt-linux
main: .
binary: plt
goos:
- linux
goarch:
- amd64
skip: '{{ or (ne .Runtime.Goos "linux") (ne .Runtime.Goarch "amd64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: pluto-linux-arm64
main: .
binary: pluto
goos:
- linux
goarch:
- arm64
skip: '{{ or (ne .Runtime.Goos "linux") (ne .Runtime.Goarch "arm64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: plt-linux-arm64
main: .
binary: plt
goos:
- linux
goarch:
- arm64
skip: '{{ or (ne .Runtime.Goos "linux") (ne .Runtime.Goarch "arm64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: pluto-darwin-arm64
main: .
binary: pluto
goos:
- darwin
goarch:
- arm64
skip: '{{ or (ne .Runtime.Goos "darwin") (ne .Runtime.Goarch "arm64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: plt-darwin-arm64
main: .
binary: plt
goos:
- darwin
goarch:
- arm64
skip: '{{ or (ne .Runtime.Goos "darwin") (ne .Runtime.Goarch "arm64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: pluto-darwin-amd64
main: .
binary: pluto
goos:
- darwin
goarch:
- amd64
skip: '{{ or (ne .Runtime.Goos "darwin") (ne .Runtime.Goarch "amd64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: plt-darwin-amd64
main: .
binary: plt
goos:
- darwin
goarch:
- amd64
skip: '{{ or (ne .Runtime.Goos "darwin") (ne .Runtime.Goarch "amd64") }}'
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: pluto-windows
main: .
binary: pluto
goos:
- windows
goarch:
- amd64
skip: '{{ or (ne .Runtime.Goos "windows") (ne .Runtime.Goarch "amd64") }}'
# MSYS2/MinGW builds of tinygo.org/x/go-llvm require byollvm.
tags:
- byollvm
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
- PLUTO_WIN_TOOLCHAIN=gnu
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- id: plt-windows
main: .
binary: plt
goos:
- windows
goarch:
- amd64
skip: '{{ or (ne .Runtime.Goos "windows") (ne .Runtime.Goarch "amd64") }}'
# MSYS2/MinGW builds of tinygo.org/x/go-llvm require byollvm.
tags:
- byollvm
env:
- CGO_ENABLED=1
- CC=clang
- CXX=clang++
- PLUTO_WIN_TOOLCHAIN=gnu
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Commit={{ .Commit }}
- -X main.BuildDate={{ .Date }}
archives:
- id: pluto-archives
ids:
- pluto-linux
- plt-linux
- pluto-linux-arm64
- plt-linux-arm64
- pluto-darwin-arm64
- plt-darwin-arm64
- pluto-darwin-amd64
- plt-darwin-amd64
- pluto-windows
- plt-windows
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums_{{ .Runtime.Goos }}_{{ .Runtime.Goarch }}.txt'
source:
enabled: false
nfpms:
- id: pluto-linux-packages
ids:
- pluto-linux
- plt-linux
- pluto-linux-arm64
- plt-linux-arm64
package_name: pluto
formats:
- deb
- rpm
- apk
file_name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}'
homepage: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}'
maintainer: '{{ or .Env.NFPM_MAINTAINER "Pluto Contributors <opensource@pluto-lang.org>" }}'
description: Pluto programming language compiler (requires LLVM 21 toolchain on target host).
license: MIT
bindir: /usr/bin
dependencies:
- llvm-21
- clang-21
- lld-21
overrides:
rpm:
dependencies:
- llvm
- clang
- lld
apk:
dependencies:
- llvm
- clang
- lld
homebrew_casks:
- name: pluto
ids:
- pluto-archives
repository:
owner: '{{ or .Env.HOMEBREW_TAP_OWNER .Env.GITHUB_REPOSITORY_OWNER }}'
name: '{{ or .Env.HOMEBREW_TAP_REPO "homebrew-tap" }}'
commit_author:
name: pluto-bot
email: 41898282+github-actions[bot]@users.noreply.github.com
description: Pluto programming language compiler
homepage: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}'
license: MIT
dependencies:
- formula: llvm
- formula: lld
binaries:
- pluto
- plt
skip_upload: '{{ ne (or (index .Env "PUBLISH_HOMEBREW") "0") "1" }}'
scoops:
- name: pluto
ids:
- pluto-archives
repository:
owner: '{{ or .Env.SCOOP_BUCKET_OWNER .Env.GITHUB_REPOSITORY_OWNER }}'
name: '{{ or .Env.SCOOP_BUCKET_REPO "scoop-bucket" }}'
commit_author:
name: pluto-bot
email: 41898282+github-actions[bot]@users.noreply.github.com
description: Pluto programming language compiler
homepage: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}'
license: MIT
depends:
- llvm
skip_upload: '{{ ne (or (index .Env "PUBLISH_SCOOP") "0") "1" }}'
winget:
- name: pluto
ids:
- pluto-archives
package_identifier: '{{ or .Env.WINGET_PACKAGE_IDENTIFIER "PlutoLang.Pluto" }}'
publisher: '{{ or .Env.WINGET_PUBLISHER "Pluto Language" }}'
short_description: Pluto programming language compiler
license: MIT
homepage: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}'
repository:
owner: '{{ or .Env.WINGET_REPO_OWNER .Env.GITHUB_REPOSITORY_OWNER }}'
name: '{{ or .Env.WINGET_REPO_NAME "winget-pkgs" }}'
commit_author:
name: pluto-bot
email: 41898282+github-actions[bot]@users.noreply.github.com
dependencies:
- package_identifier: LLVM.LLVM
skip_upload: '{{ ne (or (index .Env "PUBLISH_WINGET") "0") "1" }}'
chocolateys:
- name: pluto
ids:
- pluto-archives
title: Pluto
authors: Pluto Contributors
project_url: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}'
project_source_url: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}'
docs_url: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}#readme'
bug_tracker_url: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}/issues'
summary: Pluto programming language compiler
description: Pluto is a compiled language with a Go front-end and LLVM back-end.
license_url: 'https://github.com/{{ .Env.GITHUB_REPOSITORY }}/blob/master/LICENSE'
require_license_acceptance: false
tags: pluto compiler language llvm
dependencies:
- id: llvm
api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'
source_repo: '{{ .Env.CHOCOLATEY_SOURCE_REPO }}'
skip_publish: true
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
snapshot:
version_template: '{{ incpatch .Version }}-next'
release:
mode: keep-existing
use_existing_draft: true
replace_existing_artifacts: true
draft: true