Skip to content

Commit

Permalink
split archies
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Oct 5, 2023
1 parent 7d49951 commit 4836a4a
Showing 1 changed file with 27 additions and 10 deletions.
37 changes: 27 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,61 @@ builds:
- CGO_ENABLED=0
id: warp
main: ./cmd/warp
goos: [linux]
goarch: [amd64]
goos: [linux, darwin]
goarch: [amd64, arm64]
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
- env:
- CGO_ENABLED=1
id: warp-plugin-mysql
id: mysql
main: ./plugins/mysql/...
buildmode: plugin
no_main_check: true
binary: warp-plugin-mysql.so
goos: [linux]
goarch: [amd64]
goarch: [amd64, arm64]
- env:
- CGO_ENABLED=1
id: warp-plugin-sqlite
id: sqlite
main: ./plugins/sqlite/...
buildmode: plugin
no_main_check: true
binary: warp-plugin-sqlite.so
goos: [linux]
goarch: [amd64]
goarch: [amd64, arm64]
- env:
- CGO_ENABLED=1
id: warp-plugin-file
id: file
main: ./plugins/file/...
buildmode: plugin
no_main_check: true
binary: warp-plugin-file.so
goos: [linux]
goarch: [amd64]
goarch: [amd64, arm64]

archives:
- format: tar.gz
- id: warp
builds: [warp]
format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: warp-plugins
builds: [mysql, sqlite, file]
format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname.
name_template: >-
{{ .ProjectName }}_plugins_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
Expand Down

0 comments on commit 4836a4a

Please sign in to comment.