mirror of
https://github.com/lukaszraczylo/shared-actions.git
synced 2026-07-07 06:34:24 +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 }}
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user