Skip to content

Commit 9541069

Browse files
author
cclss
committed
libpacp
1 parent 9a56cbe commit 9541069

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

v2/.goreleaser/linux.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
env:
22
- GO111MODULE=on
3+
- CGO_ENABLED=1
4+
- CGO_LDFLAGS_ALLOW='-static'
35
before:
46
hooks:
57
- go mod tidy
68
project_name: naabu
79
builds:
810
- id: naabu-linux
11+
env:
12+
- PKG_CONFIG_PATH=/usr/lib/pkgconfig
913
ldflags:
10-
- -s -w
14+
- -s -w -extldflags "-static"
1115
binary: naabu
12-
env:
13-
- CGO_ENABLED=1
1416
main: ./cmd/naabu/main.go
1517
goos:
1618
- linux
1719
goarch:
1820
- amd64
19-
# - arm64
20-
21+
2122
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 }}'
2425

2526
checksum:
26-
name_template: "{{ .ProjectName }}-linux-checksums.txt"
27+
name_template: "{{ .ProjectName }}-linux-checksums.txt"

0 commit comments

Comments
 (0)