File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ env :
2
+ - CGO_ENABLED=0
3
+
1
4
before :
2
5
hooks :
3
6
- go mod tidy
4
7
5
8
builds :
6
- - env :
7
- - CGO_ENABLED=1
8
9
binary : kaf-relay
10
+ main : ./
9
11
goos :
10
12
- windows
11
13
- darwin
@@ -15,10 +17,11 @@ builds:
15
17
- netbsd
16
18
goarch :
17
19
- amd64
20
+ ldflags :
21
+ - -s -w -X "main.buildString=${BUILDSTR}"
18
22
19
23
archives :
20
24
- format : tar.gz
21
- rlcp : true
22
25
files :
23
26
- config.toml.sample
24
27
- README.md
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ DIST := dist
10
10
.PHONY : dist
11
11
dist :
12
12
mkdir -p ${DIST}
13
- CGO_ENABLED=1 go build -o ${BIN} --ldflags=" -X 'main.buildString=${BUILDSTR} '"
13
+ CGO_ENABLED=0 go build -o ${BIN} --ldflags=" -X 'main.buildString=${BUILDSTR} '"
14
14
cp ${BIN} ${DIST}
15
15
16
16
.PHONY : clean
You can’t perform that action at this time.
0 commit comments