Skip to content

Commit 6956144

Browse files
committed
fix: use cgo enabled for windows and linux
1 parent 55e6357 commit 6956144

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
12-
goos: [linux, windows, darwin]
12+
goos: [linux, windows]
1313
goarch: [amd64]
1414
# goarch: ['386', amd64]
1515
# exclude:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ DEFAULT_VERSION=0.1.0-local
22
VERSION := $(or $(VERSION),$(DEFAULT_VERSION))
33

44
cmd:
5-
cd server && go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
5+
cd server && CGO_ENABLED=1 go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
66
clean:
77
rm -rf build

0 commit comments

Comments
 (0)