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

build(deps): enable rpm builds and add archs #3403

Merged
merged 1 commit into from
Apr 11, 2024
Merged
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
18 changes: 16 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project_name: govmomi

builds:
- id: govc
no_main_check: true
goos: &goos-defs
- linux
- darwin
Expand All @@ -13,6 +14,7 @@ builds:
- arm
- arm64
- mips64le
- s390x
env:
- CGO_ENABLED=0
- PKGPATH=github.com/vmware/govmomi/govc/flags
Expand All @@ -21,6 +23,7 @@ builds:
ldflags:
- "-X {{.Env.PKGPATH}}.BuildVersion={{.Version}} -X {{.Env.PKGPATH}}.BuildCommit={{.ShortCommit}} -X {{.Env.PKGPATH}}.BuildDate={{.Date}}"
- id: vcsim
no_main_check: true
goos: *goos-defs
goarch: *goarch-defs
env:
Expand All @@ -30,6 +33,17 @@ builds:
ldflags:
- "-X main.buildVersion={{.Version}} -X main.buildCommit={{.ShortCommit}} -X main.buildDate={{.Date}}"

nfpms:
- package_name: govmomi
builds:
- govc
homepage: https://github.com/vmware/govmomi
maintainer: Doug MacEachern <[email protected]>
description: |-
vSphere CLI
formats:
- rpm

archives:
- id: govcbuild
builds:
Expand Down Expand Up @@ -90,7 +104,7 @@ brews:
commit_author:
name: Alfred the Narwhal
email: [email protected]
folder: Formula
directory: Formula
homepage: "https://github.com/vmware/govmomi/blob/main/govc/README.md"
description: "govc is a vSphere CLI built on top of govmomi."
test: |
Expand All @@ -110,7 +124,7 @@ brews:
commit_author:
name: Alfred the Narwhal
email: [email protected]
folder: Formula
directory: Formula
homepage: "https://github.com/vmware/govmomi/blob/main/vcsim/README.md"
description: "vcsim is a vSphere API simulator built on top of govmomi."
test: |
Expand Down
Loading