Compare commits
10 Commits
0.1.0-alph
...
0.1.0-alph
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4d3fbeee8f | ||
![]() |
0b54c48f04 | ||
![]() |
496b267cc4 | ||
![]() |
c72c8d3232 | ||
![]() |
acab410141 | ||
![]() |
695614497c | ||
![]() |
55e6357a5f | ||
![]() |
bbfbe71d95 | ||
![]() |
3615f413db | ||
![]() |
579d1512ac |
22
.github/workflows/release.yaml
vendored
22
.github/workflows/release.yaml
vendored
@@ -4,22 +4,30 @@ 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
|
||||
goos: [linux, windows]
|
||||
goarch: [amd64]
|
||||
# goarch: ['386', amd64]
|
||||
# exclude:
|
||||
# - goarch: '386'
|
||||
# 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
|
||||
run: echo "CGO_ENABLED=1" >> $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: app build
|
||||
md5sum: FALSE
|
||||
extra_files: .env.sample app build template
|
||||
|
2
Makefile
2
Makefile
@@ -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
|
Reference in New Issue
Block a user