-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A release.yml: add github workflows for release
- Loading branch information
1 parent
8416c5a
commit 56ec5e0
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
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/go-release-action@v1.34 | ||
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 | ||
|