Compare commits

..

4 Commits

Author SHA1 Message Date
Lakhan Samani
89725c2da2 fix: make file 2021-09-11 07:08:19 +05:30
Lakhan Samani
4d3fbeee8f fix: remove darwin build 2021-09-10 22:54:37 +05:30
Lakhan Samani
0b54c48f04 fix: remove darwin build 2021-09-10 22:54:31 +05:30
Lakhan Samani
496b267cc4 fix: add cross compile libs 2021-09-10 22:51:15 +05:30
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ jobs:
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
goos: [linux, windows, darwin]
goos: [linux, windows]
goarch: [amd64]
# goarch: ['386', amd64]
# exclude:
@@ -17,6 +17,8 @@ jobs:
# goos: darwin
steps:
- uses: actions/checkout@v2
- name: Install xmllint
run: sudo apt-get install gcc-multilib gcc-mingw-w64 libpango1.0
- name: Set VERSION env
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
- name: Set CGO env

View File

@@ -2,6 +2,6 @@ DEFAULT_VERSION=0.1.0-local
VERSION := $(or $(VERSION),$(DEFAULT_VERSION))
cmd:
cd server && CGO_ENABLED=1 go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
cd server && go build -ldflags "-w -X main.Version=$(VERSION)" -o '../build/server'
clean:
rm -rf build