From d64e4b7183ab9ee374f6d77a2bc26032f0e452d7 Mon Sep 17 00:00:00 2001 From: Beau Date: Mon, 26 Feb 2024 16:45:29 +0000 Subject: [PATCH] ci: multi-arch release automation --- .github/workflows/release.yaml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c803675..e6e75da 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,13 +7,27 @@ permissions: packages: write jobs: - release-linux-amd64: - name: release linux/amd64 + releases-matrix: + name: Release runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin] + goarch: ["386", amd64, arm64] + exclude: + - goarch: "386" + goos: darwin + - goarch: arm64 + goos: windows steps: + - uses: extractions/setup-just@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} - uses: actions/checkout@v4 - uses: wangyoucao577/go-release-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} - goos: linux - goarch: amd64 + pre_command: export CGO_ENABLED=0 + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + goversion: "./go.mod"