diff --git a/goreleaser.yml b/goreleaser.yml index 301f964..064f54f 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -4,19 +4,45 @@ archives: files: - conf/* builds: - - id: "all" + - id: "use cgo" env: - CGO_ENABLED=1 - GOPRIVATE=m7s.live/plugin/snappro/v4,m7s.live/plugin/transcode/v4,m7s.live/plugin/cascade ldflags: - -s -w -X main.version={{.Tag}} + goos: + - linux + goarch: + - amd64 + hooks: + pre: + - go mod tidy + - id: "no cgo arm" + env: + - CGO_ENABLED=0 + - GOPRIVATE=m7s.live/plugin/snappro/v4,m7s.live/plugin/transcode/v4,m7s.live/plugin/cascade + ldflags: + - -s -w -X main.version={{.Tag}} goos: - linux - windows - darwin goarch: - - amd64 - arm64 hooks: pre: - - go mod tidy \ No newline at end of file + - go mod tidy + - id: "no cgo amd64" + env: + - CGO_ENABLED=0 + - GOPRIVATE=m7s.live/plugin/snappro/v4,m7s.live/plugin/transcode/v4,m7s.live/plugin/cascade + ldflags: + - -s -w -X main.version={{.Tag}} + goos: + - darwin + - windows + goarch: + - amd64 + hooks: + pre: + - go mod tidy \ No newline at end of file