Skip to content

Commit

Permalink
Merge pull request #8 from Ralim/actions
Browse files Browse the repository at this point in the history
Update build-release.yml
  • Loading branch information
Ralim authored Jan 3, 2022
2 parents b9c2103 + a5e61d9 commit 0df0b90
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# workflow name
name: Generate release-artifacts

# on events
on:
release:
types:
- created
types: [created]

# workflow tasks
jobs:
generate:
name: Generate cross-platform builds
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel: linux/amd64, linux/arm64, windows/amd64, darwin/amd64, darwin/arm64
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Generate build files
uses: thatisuday/go-cross-build@v1
- uses: actions/checkout@v2
- uses: wangyoucao577/[email protected]
with:
platforms: "linux/amd64,linux/arm64, darwin/amd64, windows/amd64"
name: "switchhost"
compress: "true"
dest: "dist"
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
extra_files: LICENSE README.md

0 comments on commit 0df0b90

Please sign in to comment.