Skip to content

Release Binary

Release Binary #29

Workflow file for this run

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"