fix: use goreleaser build for CGO split mode instead of Pro feature

--split flag is GoReleaser Pro only. Use 'build --single-target' for
matrix builds and 'release --clean' for the merge step.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-14 20:09:46 +00:00
parent dce463c659
commit 47d7101d55
+4 -4
View File
@@ -46,23 +46,23 @@ runs:
HOMEBREW_TAP_TOKEN: ${{ inputs.homebrew-tap-token }} HOMEBREW_TAP_TOKEN: ${{ inputs.homebrew-tap-token }}
CGO_ENABLED: ${{ inputs.cgo-enabled }} CGO_ENABLED: ${{ inputs.cgo-enabled }}
- name: Run GoReleaser (split) - name: Run GoReleaser (build only for CGO matrix)
if: inputs.mode == 'split' if: inputs.mode == 'split'
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
with: with:
distribution: goreleaser distribution: goreleaser
version: "~> v2" version: "~> v2"
args: release --clean --split args: build --clean --single-target
env: env:
GITHUB_TOKEN: ${{ inputs.github-token }} GITHUB_TOKEN: ${{ inputs.github-token }}
CGO_ENABLED: ${{ inputs.cgo-enabled }} CGO_ENABLED: ${{ inputs.cgo-enabled }}
- name: Run GoReleaser (merge) - name: Run GoReleaser (release with pre-built artifacts)
if: inputs.mode == 'merge' if: inputs.mode == 'merge'
uses: goreleaser/goreleaser-action@v6 uses: goreleaser/goreleaser-action@v6
with: with:
distribution: goreleaser distribution: goreleaser
version: "~> v2" version: "~> v2"
args: continue --merge args: release --clean
env: env:
GITHUB_TOKEN: ${{ inputs.github-token }} GITHUB_TOKEN: ${{ inputs.github-token }}