Skip to content

Commit

Permalink
build(deps): enable rpm builds and add archs
Browse files Browse the repository at this point in the history
1. Add nfpm configuration for rpm builds.
2. Add x86_64 and s390x architectures.
3. Skip main.go check as there are several.
4. Rename deprecated `folder` to `directory`.

Tested with
```
goreleaser release --clean --snapshot --rm-dist --verbose --skip docker,homebrew
```

Closes: vmware#3404

Signed-off-by: Sebastian Mitterle <[email protected]>
  • Loading branch information
smitterl committed Apr 11, 2024
1 parent 007b3cd commit e66065a
Showing 1 changed file with 16 additions and 2 deletions.
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

0 comments on commit e66065a

Please sign in to comment.