2023-10-29 20:53:32 -04:00
|
|
|
name: build cli for all platforms
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
make-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/create-release@latest
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
release_name: ${{ github.ref }}
|
|
|
|
build-all-for-all:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs:
|
|
|
|
- make-release
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
goos: [linux, freebsd, darwin, windows]
|
2024-07-27 09:32:32 -04:00
|
|
|
goarch: [amd64, arm64, riscv64]
|
2023-10-29 20:53:32 -04:00
|
|
|
exclude:
|
|
|
|
- goarch: arm64
|
|
|
|
goos: windows
|
2024-07-27 09:32:32 -04:00
|
|
|
- goarch: riscv64
|
|
|
|
goos: windows
|
|
|
|
- goarch: riscv64
|
|
|
|
goos: darwin
|
2023-10-29 20:53:32 -04:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: wangyoucao577/go-release-action@v1.40
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
goos: ${{ matrix.goos }}
|
|
|
|
goarch: ${{ matrix.goarch }}
|
|
|
|
overwrite: true
|
2023-10-29 22:55:40 -04:00
|
|
|
md5sum: false
|
|
|
|
sha256sum: false
|
|
|
|
compress_assets: false
|