Files
goptimize/.github/workflows/build-release.yml
dependabot[bot] a6ee641f81 Bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-02 04:48:21 +00:00

36 lines
924 B
YAML

name: Release Go Binaries
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: ["386", amd64, arm, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm
goos: darwin
steps:
- uses: actions/checkout@v5
- uses: wangyoucao577/go-release-action@v1
with:
binary_name: "goptimize"
asset_name: "goptimize-${{ matrix.goos }}-${{ matrix.goarch }}"
extra_files: LICENSE README.md
github_token: ${{ secrets.GITHUB_TOKEN }}
md5sum: false
overwrite: true
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
pre_command: export GO386=softfloat CGO_ENABLED=0
ldflags: -s -w -X "main.version=${{ github.ref_name }}"