Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add windows binary to goreleaser.yaml #3962

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions release/tag/goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ builds:
- arm64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -extldflags "-z noexecstack"

- id: windows-amd64
env:
- CGO_ENABLED=0
- GO111MODULE=on
goos:
- windows
goarch:
- amd64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}

- id: darwin-amd64-wasm
env:
- CGO_ENABLED=1
Expand Down Expand Up @@ -110,6 +120,18 @@ builds:
goarch:
- arm64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}} -extldflags "-z noexecstack"

- id: windows-amd64-wasm
env:
- CGO_ENABLED=1
- GO111MODULE=on
- CC=o64-clang
- CXX=o64-clang++
goos:
- windows
goarch:
- amd64
ldflags: -s -w -X github.com/GoogleContainerTools/kpt/run.version={{.Version}}

dockers:
- ids:
Expand All @@ -122,13 +144,15 @@ dockers:
image_templates:
- "gcr.io/kpt-dev/kpt-gcloud:{{ .Tag }}"
dockerfile: "release/images/Dockerfile-gcloud"

archives:
- id: archived
builds:
- darwin-amd64
- darwin-arm64
- linux-amd64
- linux-arm64
- windows-amd64
files:
- LICENSES*
- lib.zip*
Expand All @@ -139,6 +163,7 @@ archives:
- darwin-arm64-wasm
- linux-amd64-wasm
- linux-arm64-wasm
- windows-amd64-wasm
files:
- LICENSES*
- lib.zip*
Expand All @@ -150,6 +175,7 @@ archives:
- darwin-arm64
- linux-amd64
- linux-arm64
- windows-amd64
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- id: bin-only-wasm
format: binary
Expand All @@ -158,6 +184,7 @@ archives:
- darwin-arm64-wasm
- linux-amd64-wasm
- linux-arm64-wasm
- windows-amd64-wasm
name_template: "{{ .ProjectName }}_wasm_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "checksums.txt"
Expand Down