-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.goreleaser.yml
74 lines (73 loc) · 2.28 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
version: 2
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
builds:
- id: "linux"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- "6"
- "7"
main: ./cmd/aws-fuzzy/main.go
ldflags:
- -X github.com/AndreZiviani/aws-fuzzy/internal/cli.version={{.Version}}
- id: "windows"
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
main: ./cmd/aws-fuzzy/main.go
ldflags:
- -X github.com/AndreZiviani/aws-fuzzy/internal/cli.version={{.Version}}
- id: "macos"
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
- arm64
main: ./cmd/aws-fuzzy/main.go
flags: -buildmode=pie
ldflags:
- -s -w -X github.com/AndreZiviani/aws-fuzzy/internal/cli.version={{.Version}}
overrides:
- goos: darwin
goarch: amd64
goamd64: v1
env:
- CGO_LDFLAGS=-mmacosx-version-min=10.14 --sysroot /home/runner/work/aws-fuzzy/sdk -F/System/Library/Frameworks -L/usr/lib
- CC=zig cc -target x86_64-macos-gnu -isysroot /home/runner/work/aws-fuzzy/sdk -iwithsysroot /usr/include -iframeworkwithsysroot /System/Library/Frameworks
- CXX=zig c++ -target x86_64-macos-gnu -isysroot /home/runner/work/aws-fuzzy/sdk -iwithsysroot /usr/include -iframeworkwithsysroot /System/Library/Frameworks
- goos: darwin
goarch: arm64
env:
- CGO_LDFLAGS=-mmacosx-version-min=11.1 --sysroot /home/runner/work/aws-fuzzy/sdk -F/System/Library/Frameworks -L/usr/lib
- CC=zig cc -target aarch64-macos-gnu -isysroot /home/runner/work/aws-fuzzy/sdk -iwithsysroot /usr/include -iframeworkwithsysroot /System/Library/Frameworks
- CXX=zig c++ -target aarch64-macos-gnu -isysroot /home/runner/work/aws-fuzzy/sdk -iwithsysroot /usr/include -iframeworkwithsysroot /System/Library/Frameworks
archives:
- format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
prerelease: auto