-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yaml
57 lines (51 loc) · 1.66 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
builds:
- #
# ID of the build.
#
# Default: Project directory name.
id: "goreleaser-build"
# Binary name.
# Can be a path (e.g. `bin/app`) to wrap the binary in a directory.
#
# Default: Project directory name.
binary: vind
# Custom environment variables to be set during the builds.
# Invalid environment variables will be ignored.
# For more info refer to: https://pkg.go.dev/cmd/go#hdr-Environment_variables
#
# Default: os.Environ() ++ env config section.
# Templates: allowed.
env:
- CGO_ENABLED=0
# Custom ldflags.
# For more info refer to: https://pkg.go.dev/cmd/go#hdr-Compile_packages_and_dependencies
# and https://pkg.go.dev/cmd/link
#
# Default: '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'.
# Templates: allowed.
ldflags:
- -s -w
- -X github.com/brightzheng100/vind/cmd.version=v{{.Version}}
- -X github.com/brightzheng100/vind/cmd.commit={{.Commit}}
- -X github.com/brightzheng100/vind/cmd.date={{.Date}}
# GOOS list to build for.
# For more info refer to: https://pkg.go.dev/cmd/go#hdr-Environment_variables
#
# Default: [ 'darwin', 'linux', 'windows' ].
goos:
- darwin
- linux
- windows
# GOARCH to build for.
# For more info refer to: https://pkg.go.dev/cmd/go#hdr-Environment_variables
#
# Default: [ '386', 'amd64', 'arm64' ].
goarch:
- amd64
- arm64
# List of combinations of GOOS + GOARCH + GOARM to ignore.
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: arm