-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
118 lines (115 loc) · 2.8 KB
/
.goreleaser.yml
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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: lithia-macos
main: ./app/lithia
env:
- CGO_ENABLED=1
ldflags: &build-ldflags
- -s -w -X github.com/vknabel/lithia/info.Version={{.Version}}
- -X github.com/vknabel/lithia/info.Commit={{.Commit}}
- -X github.com/vknabel/lithia/info.Date={{.Date}}
- -X github.com/vknabel/lithia/info.BuiltBy=goreleaser
goos:
# - linux
# - windows
- darwin
# requires cross-compiler
# brew install FiloSottile/musl-cross/musl-cross
# brew reinstall FiloSottile/musl-cross/musl-cross --with-aarch64
# brew install mingw-w64
- id: lithia-x-linux-amd64
main: ./app/lithia
ldflags: *build-ldflags
env:
- CGO_ENABLED=1
- CC=x86_64-linux-musl-gcc
goos:
- linux
goarch:
- amd64
- id: lithia-x-linux-arm64
main: ./app/lithia
env:
- CGO_ENABLED=1
- CC=aarch64-linux-musl-gcc
ldflags: *build-ldflags
goos:
- linux
goarch:
- arm64
- id: lithia-x-windows-amd64
main: ./app/lithia
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
ldflags: *build-ldflags
goos:
- windows
goarch:
- amd64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- stdlib
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
brews:
- name: lithia
description: "Functional programming language with an implicit but strong and dynamic type system"
homepage: "https://github.com/vknabel/lithia"
tap:
owner: vknabel
name: homebrew-lithia
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
license: "MIT"
folder: Formula
install: |
bin.install "lithia"
prefix.install "./stdlib"
dockers:
- image_templates:
- "vknabel/lithia:latest"
- "vknabel/lithia:{{ .Tag }}"
- "vknabel/lithia:v{{ .Major }}"
- "vknabel/lithia:v{{ .Major }}.{{ .Minor }}"
# different approach needed in future
# actually goreleaser should be used to copy the binaries
# -> only the second stage
extra_files:
- app
- ast
- external
- info
- langsrv
- parser
- potfile
- reporting
- resolution
- runtime
- stdlib
- testing
- world
- go.mod
- go.sum
- lithia.go