mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-06-06 22:49:21 +00:00
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:
@@ -46,23 +46,23 @@ runs:
|
||||
HOMEBREW_TAP_TOKEN: ${{ inputs.homebrew-tap-token }}
|
||||
CGO_ENABLED: ${{ inputs.cgo-enabled }}
|
||||
|
||||
- name: Run GoReleaser (split)
|
||||
- name: Run GoReleaser (build only for CGO matrix)
|
||||
if: inputs.mode == 'split'
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: "~> v2"
|
||||
args: release --clean --split
|
||||
args: build --clean --single-target
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.github-token }}
|
||||
CGO_ENABLED: ${{ inputs.cgo-enabled }}
|
||||
|
||||
- name: Run GoReleaser (merge)
|
||||
- name: Run GoReleaser (release with pre-built artifacts)
|
||||
if: inputs.mode == 'merge'
|
||||
uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: "~> v2"
|
||||
args: continue --merge
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ inputs.github-token }}
|
||||
|
||||
Reference in New Issue
Block a user