Compare commits

...

15 Commits

Author SHA1 Message Date
Lakhan Samani
425d14e3af fix: dependency package for win build 2021-09-11 11:52:52 +05:30
Lakhan Samani
1575047197 fix: add conditional env 2021-09-11 11:36:54 +05:30
Lakhan Samani
1942b251c7 fix: install mingw-64 for windows 2021-09-11 11:32:59 +05:30
Lakhan Samani
73219067f4 fix: fix env set in release.yml 2021-09-11 11:19:58 +05:30
Lakhan Samani
252aebce4b fix: add different jobs for windows and darwin with expected Go envs 2021-09-11 11:15:15 +05:30
Lakhan Samani
05cf85e0e5 fix: make file 2021-09-11 07:41:03 +05:30
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
Lakhan Samani
c72c8d3232 fix: release action 2021-09-10 22:45:48 +05:30
Lakhan Samani
acab410141 fix: remove windows from automated build 2021-09-10 17:51:32 +05:30
Lakhan Samani
695614497c fix: use cgo enabled for windows and linux 2021-09-10 14:52:29 +05:30
Lakhan Samani
55e6357a5f fix: remove cgo from build 2021-09-09 12:02:16 +05:30
Lakhan Samani
bbfbe71d95 fix: release action 2021-09-09 11:50:54 +05:30
2 changed files with 18 additions and 10 deletions

View File

@@ -3,24 +3,32 @@ on:
types: [created]
jobs:
releases-matrix:
releases-windows:
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: amd64
# goarch: ['386', amd64]
# exclude:
# - goarch: '386'
# goos: darwin
goos: [windows]
goarch: [amd64]
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get install build-essential
- name: Install windows dependencies
if: ${{ matrix.goos == 'windows'}}
run: sudo apt-get install gcc-mingw-w64
- name: Set VERSION env
run: echo VERSION=$(basename ${GITHUB_REF}) >> ${GITHUB_ENV}
- name: Set GO_ENABLED env
run: echo CGO_ENABLED=1 >> ${GITHUB_ENV}
- name: Set Windows C Compiler GO env
if: ${{ matrix.goos == 'windows'}}
run: echo CC=x86_64-w64-mingw32-gcc >> ${GITHUB_ENV}
- uses: wangyoucao577/go-release-action@v1.20
with:
github_token: ${{ secrets.RELEASE_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: make clean && make
extra_files: .env.sample app build
md5sum: FALSE
extra_files: .env.sample app build template

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