added linux cgo target
This commit is contained in:
parent
d0239f25ed
commit
4c903684d8
|
@ -42,6 +42,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -7,7 +7,20 @@ before:
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- main: ./examples/base
|
- id: build_cgo
|
||||||
|
main: ./examples/base
|
||||||
|
binary: pocketbase
|
||||||
|
ldflags:
|
||||||
|
- -s -w -X github.com/pocketbase/pocketbase.Version={{ .Version }}
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=1
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
|
||||||
|
- id: build_noncgo
|
||||||
|
main: ./examples/base
|
||||||
binary: pocketbase
|
binary: pocketbase
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X github.com/pocketbase/pocketbase.Version={{ .Version }}
|
- -s -w -X github.com/pocketbase/pocketbase.Version={{ .Version }}
|
||||||
|
@ -33,7 +46,17 @@ release:
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- format: zip
|
- id: archive_cgo
|
||||||
|
builds: [build_cgo]
|
||||||
|
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}_cgo'
|
||||||
|
format: zip
|
||||||
|
files:
|
||||||
|
- LICENSE*
|
||||||
|
- CHANGELOG*
|
||||||
|
|
||||||
|
- id: archive_noncgo
|
||||||
|
builds: [build_noncgo]
|
||||||
|
format: zip
|
||||||
files:
|
files:
|
||||||
- LICENSE*
|
- LICENSE*
|
||||||
- CHANGELOG*
|
- CHANGELOG*
|
||||||
|
|
Loading…
Reference in New Issue