File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
env :
2
2
- GO111MODULE=on
3
+ - CGO_ENABLED=1
4
+ - CGO_LDFLAGS_ALLOW='-static'
3
5
before :
4
6
hooks :
5
7
- go mod tidy
6
8
project_name : naabu
7
9
builds :
8
10
- id : naabu-linux
11
+ env :
12
+ - PKG_CONFIG_PATH=/usr/lib/pkgconfig
9
13
ldflags :
10
- - -s -w
14
+ - -s -w -extldflags "-static"
11
15
binary : naabu
12
- env :
13
- - CGO_ENABLED=1
14
16
main : ./cmd/naabu/main.go
15
17
goos :
16
18
- linux
17
19
goarch :
18
20
- amd64
19
- # - arm64
20
-
21
+
21
22
archives :
22
- - format : zip
23
- name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
23
+ - format : zip
24
+ name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
24
25
25
26
checksum :
26
- name_template : " {{ .ProjectName }}-linux-checksums.txt"
27
+ name_template : " {{ .ProjectName }}-linux-checksums.txt"
You can’t perform that action at this time.
0 commit comments