Skip to content

Commit

Permalink
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
```

Signed-off-by: Sebastian Mitterle <[email protected]>
  • Loading branch information
smitterl committed Apr 9, 2024
1 parent 007b3cd commit eff5ed1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 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,8 @@ builds:
- arm
- arm64
- mips64le
- 386
- s390x
env:
- CGO_ENABLED=0
- PKGPATH=github.com/vmware/govmomi/govc/flags
Expand All @@ -21,6 +24,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 +34,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 +105,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 +125,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 eff5ed1

Please sign in to comment.