-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (50 loc) · 1.39 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
# .github/workflows/release.yaml
on: release
name: Build Release
jobs:
lint:
name: Lint files
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@master
- uses: actions/setup-go@v5
with:
go-version: '^1.16.3'
- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest
releases-matrix:
name: Release Matrix
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: windows
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
- goarch: arm64
goos: darwin
steps:
- name: Checkout code
uses: actions/checkout@master
# - uses: actions/setup-go@v5
# with:
# go-version: '^1.16.3'
- name: Set APP_VERSION env
run: echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
# - name: Environment Printer
# uses: managedkaos/[email protected]
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
# project_path: "${{ env.CMD_PATH }}"
build_flags: -v