-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yaml
68 lines (68 loc) · 1.7 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
builds:
- id: linux-build
main: ./cmd/envd-lsp
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
ignore:
- goos: linux
goarch: 386
ldflags:
- -s -w
- -X github.com/tensorchord/envd-lsp/pkg/version.version={{ .Version }}
- -X github.com/tensorchord/envd-lsp/pkg/version.buildDate={{ .Date }}
- -X github.com/tensorchord/envd-lsp/pkg/version.gitCommit={{ .Commit }}
- -X github.com/tensorchord/envd-lsp/pkg/version.gitTreeState=clean
- id: darwin-build
main: ./cmd/envd-lsp
ldflags:
- -s -w
- -X github.com/tensorchord/envd-lsp/pkg/version.version={{ .Version }}
- -X github.com/tensorchord/envd-lsp/pkg/version.buildDate={{ .Date }}
- -X github.com/tensorchord/envd-lsp/pkg/version.gitCommit={{ .Commit }}
- -X github.com/tensorchord/envd-lsp/pkg/version.gitTreeState=clean
env:
- CGO_ENABLED=1
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
- CC=o64-clang
- CXX=o64-clang++
goos:
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: darwin
goarch: 386
# https://goreleaser.com/customization/universalbinaries/?h=universal_binaries
universal_binaries:
- replace: true
id: darwin-build
archives:
- id: linux-build
format: binary
builds:
- linux-build
name_template: "{{ .ProjectName }}_Linux_x86_64"
- id: darwin-build
format: binary
builds:
- darwin-build
name_template: "{{ .ProjectName }}_Darwin_all"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^build:'
- '^ci:'
- '^docs:'
- '^test:'
- '^chore:'