-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·39 lines (34 loc) · 979 Bytes
/
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
name: Build and Release
# .github/workflows/release.yaml
on:
release:
types: [created]
jobs:
releases-matrix:
name: ReleaseGo
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64, linux/arm64, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, darwin]
goarch: [amd64, arm64, arm]
exclude:
- goarch: arm
goos: darwin
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# goos: linux
# goarch: amd64
# ldflags: -s -w
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: |
make DEST=${BUILD_ARTIFACTS_FOLDER}
# env GO111MODULE=off go build -o hello
# env GO111MODULE=off go build -o world
# can't use multi cmd
# no strip cmd
md5sum: FALSE