2023-10-14 17:50:41 +00:00
|
|
|
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
|
2023-10-14 17:52:59 +00:00
|
|
|
- uses: wangyoucao577/go-release-action@v1.40
|
2023-10-14 17:50:41 +00:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
project_path: ./reporter
|
|
|
|
goos: ${{ matrix.goos }}
|
|
|
|
goarch: ${{ matrix.goarch }}
|
2023-10-15 16:08:05 +00:00
|
|
|
goversion: 1.21.1
|
2023-10-14 17:50:41 +00:00
|
|
|
binary_name: "tianji-reporter"
|
|
|
|
compress_assets: "OFF"
|