tianji/.github/workflows/reporter-release.yml
2023-11-07 16:56:47 +08:00

29 lines
717 B
YAML

name: Build Reporter Release
on:
release:
types: [created]
jobs:
build-go-binary:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
exclude:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: ./reporter
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.21.1
binary_name: "tianji-reporter"
compress_assets: "OFF"
asset_name: "${BINARY_NAME}-${GOOS}-${GOARCH}"