-
Notifications
You must be signed in to change notification settings - Fork 208
/
Copy path.goreleaser.yml
71 lines (71 loc) · 1.67 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
checksum:
name_template: "{{ .ProjectName }}_sha256checksums.txt"
algorithm: sha256
env:
- CGO_ENABLED=1
builds:
- id: build-windows-amd64
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
goos:
- windows
goarch:
- amd64
ldflags:
- '-extldflags "-static -s -w"'
- id: build-linux-amd64
goos:
- linux
goarch:
- amd64
ldflags:
- '-extldflags "-static -s -w"'
- id: build-linux-armv7
env:
- CC=arm-linux-gnueabi-gcc
- CXX=arm-linux-gnueabi-c++
- CGO_CFLAGS=-I/linux-armv7-buildroot/sys-root/include
- CGO_LDFLAGS=-L/linux-armv7-buildroot/sys-root/lib
goos:
- linux
goarch:
- arm
goarm:
- 7
ldflags:
- '-extldflags "-static -s -w"'
- id: build-linux-arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-c++
- CGO_CFLAGS=-I/linux-aarch64-buildroot/sys-root/include
- CGO_LDFLAGS=-L/linux-aarch64-buildroot/sys-root/lib
goos:
- linux
goarch:
- arm64
ldflags:
- '-extldflags "-static -s -w"'
- id: build-darwin-amd64
env:
- CC=o64-clang
- CXX=o64-clang++
- CGO_CFLAGS=-I/darwin-amd64-buildroot/sys-root/include
- CGO_LDFLAGS=-L/darwin-amd64-buildroot/sys-root/lib
- PATH=/osxcross/target/bin:$PATH
goos:
- darwin
goarch:
- amd64
- id: build-darwin-arm64
env:
- CC=oa64-clang
- CXX=oa64-clang++
- CGO_CFLAGS=-I/darwin-aarch64-buildroot/sys-root/include
- CGO_LDFLAGS=-L/darwin-aarch64-buildroot/sys-root/lib
- PATH=/osxcross/target/bin:$PATH
goos:
- darwin
goarch:
- arm64