Release Binary #29
Workflow file for this run
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
name: Release Binary | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
build-go-binary: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
goos: [ linux, windows, darwin ] # 需要打包的系统 | |
goarch: [ amd64, arm64 ] # 需要打包的架构 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
go-version: '1.19.x' | |
goos: ${{ matrix.goos }} | |
goarch: ${{ matrix.goarch }} | |
binary_name: "iris" |