Skip to content

Commit

Permalink
cgo
Browse files Browse the repository at this point in the history
  • Loading branch information
hetangj committed Dec 26, 2023
1 parent b2121e6 commit a96e43c
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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

0 comments on commit a96e43c

Please sign in to comment.