Compare commits

..

3 Commits

Author SHA1 Message Date
Lakhan Samani
bbfbe71d95 fix: release action 2021-09-09 11:50:54 +05:30
Lakhan Samani
3615f413db chore: fix release action 2021-09-09 11:48:59 +05:30
Lakhan Samani
579d1512ac chore: fix release action 2021-09-09 11:37:32 +05:30
2 changed files with 8 additions and 7 deletions

View File

@@ -4,16 +4,17 @@ on:
jobs:
releases-matrix:
name: Release Go Binary
name: Release Authorizer Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64
goos: [linux, windows, darwin]
goarch: ['386', amd64]
exclude:
- goarch: '386'
goos: darwin
goarch: [amd64]
# goarch: ['386', amd64]
# exclude:
# - goarch: '386'
# goos: darwin
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.20
@@ -22,4 +23,4 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: make clean && make
extra_files: app build
extra_files: .env.sample app build

View File

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