-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
109 lines (109 loc) · 3.12 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
project_name: reckon
gomod:
proxy: true
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^readme:"
- Merge pull request
- Merge branch
builds:
#- id: linux-armhf
# goos: [linux]
# goarch: [arm]
# goarm: [7]
# env:
# - CGO_ENABLED=1
# - CC=arm-linux-gnueabihf-gcc
# - CXX=arm-linux-gnueabihf-g++
# flags:
# - -mod=readonly
# - -trimpath
# ldflags:
# - |
# -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
# -X main.goVersion={{.Env.GO_VERSION}} -X main.pythonVersion={{.Env.PYTHON_VERSION}}
# -X main.goreleaserVersion={{.Env.GORELEASER_VERSION}}
- id: linux-amd64
goos: [linux]
goarch: [amd64]
env:
- CGO_ENABLED=1
flags:
- -mod=readonly
- -trimpath
ldflags:
- |
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
-X main.goVersion={{.Env.GO_VERSION}} -X main.pythonVersion={{.Env.PYTHON_VERSION}}
-X main.goreleaserVersion={{.Env.GORELEASER_VERSION}}
- id: linux-arm64
goos: [linux]
goarch: [arm64]
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -mod=readonly
- -trimpath
ldflags:
- |
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
-X main.goVersion={{.Env.GO_VERSION}} -X main.pythonVersion={{.Env.PYTHON_VERSION}}
-X main.goreleaserVersion={{.Env.GORELEASER_VERSION}}
- id: darwin-amd64
goos: [darwin]
goarch: [amd64]
env:
- CGO_ENABLED=1
- PATH=$PATH:/usr/local/osxcross/bin
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/osxcross/lib
- CC=o64-clang
- CXX=o64-clang++
flags:
- -mod=readonly
- -trimpath
ldflags:
- |
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
-X main.goVersion={{.Env.GO_VERSION}} -X main.pythonVersion={{.Env.PYTHON_VERSION}}
-X main.goreleaserVersion={{.Env.GORELEASER_VERSION}}
- id: darwin-arm64
goos: [darwin]
goarch: [arm64]
env:
- CGO_ENABLED=1
- PATH=$PATH:/usr/local/osxcross/bin
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/osxcross/lib
- CC=oa64-clang
- CXX=oa64-clang++
flags:
- -mod=readonly
- -trimpath
ldflags:
- |
-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
-X main.goVersion={{.Env.GO_VERSION}} -X main.pythonVersion={{.Env.PYTHON_VERSION}}
-X main.goreleaserVersion={{.Env.GORELEASER_VERSION}}
archives:
- builds:
#- linux-armhf
- linux-amd64
- linux-arm64
- darwin-amd64
- darwin-arm64
wrap_in_directory: true
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- src: LICENSE
- src: README.md
- src: model/**/*.py
- src: model/tangram/config.json
- src: model/requirements.txt
- src: model/README.md