Skip to content

v1.30.20

v1.30.20 #250

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/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: ./reporter
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.23.11
binary_name: "tianji-reporter"
compress_assets: "OFF"
asset_name: "tianji-reporter-${{ matrix.goos }}-${{ matrix.goarch }}"
build-go-binary-static:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
env:
CGO_ENABLED: 0
GOOS: linux
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
project_path: ./reporter
ldflags: '-extldflags "-static"'
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 1.23.11
binary_name: "tianji-reporter"
compress_assets: "OFF"
asset_name: "tianji-reporter-${{ matrix.goos }}-${{ matrix.goarch }}-alpine"