Skip to content

Commit 05cf85e

Browse files
committed
fix: make file
1 parent 89725c2 commit 05cf85e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
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]
12+
goos: [darwin]
1313
goarch: [amd64]
1414
# goarch: ['386', amd64]
1515
# exclude:
@@ -18,11 +18,9 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Install xmllint
21-
run: sudo apt-get install gcc-multilib gcc-mingw-w64 libpango1.0
21+
run: sudo apt-get install build-essential
2222
- name: Set VERSION env
2323
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
24-
- name: Set CGO env
25-
run: echo "CGO_ENABLED=1" >> $GITHUB_ENV
2624
- uses: wangyoucao577/[email protected]
2725
with:
2826
github_token: ${{ secrets.RELEASE_TOKEN }}

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)