Skip to content

Commit

Permalink
Split goreleaser archive in two:cgo/nocgo (#2505)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed Feb 14, 2022
1 parent 27cc0b1 commit f5a39b7
Showing 1 changed file with 69 additions and 12 deletions.
81 changes: 69 additions & 12 deletions .goreleaser.yml
Expand Up @@ -2,8 +2,36 @@ before:
hooks:
- go mod download
- ./develop/scripts/create_build_info_data.sh

archives:
- id: default
builds:
- temporal-server
- tctl
- temporal-cassandra-tool
- temporal-sql-tool
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
files:
- ./config/*

- id: no-cgo
builds:
- temporal-server-no-cgo
- tctl-no-cgo
- temporal-cassandra-tool-no-cgo
- temporal-sql-tool-no-cgo
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}_no_cgo"
format_overrides:
- goos: windows
format: zip
files:
- ./config/*

builds:
- id: "temporal-server"
- id: temporal-server
dir: cmd/server
binary: temporal-server
goos:
Expand All @@ -13,7 +41,7 @@ builds:
goarch:
- amd64
- arm64
- id: "temporal-server-no-cgo"
- id: temporal-server-no-cgo
dir: cmd/server
binary: temporal-server
env:
Expand All @@ -23,7 +51,7 @@ builds:
goarch:
- amd64
- arm64
- id: "tctl"
- id: tctl
dir: cmd/tools/cli
binary: tctl
goos:
Expand All @@ -33,7 +61,17 @@ builds:
goarch:
- amd64
- arm64
- id: "temporal-cassandra-tool"
- id: tctl-no-cgo
dir: cmd/tools/cli
binary: tctl
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- id: temporal-cassandra-tool
dir: cmd/tools/cassandra
binary: temporal-cassandra-tool
goos:
Expand All @@ -43,7 +81,17 @@ builds:
goarch:
- amd64
- arm64
- id: "temporal-sql-tool"
- id: temporal-cassandra-tool-no-cgo
dir: cmd/tools/cassandra
binary: temporal-cassandra-tool
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- id: temporal-sql-tool
dir: cmd/tools/sql
binary: temporal-sql-tool
goos:
Expand All @@ -53,14 +101,23 @@ builds:
goarch:
- amd64
- arm64
- id: temporal-sql-tool-no-cgo
dir: cmd/tools/sql
binary: temporal-sql-tool
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64

checksum:
name_template: 'checksums.txt'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
skip: true

announce:
skip: "true"

0 comments on commit f5a39b7

Please sign in to comment.