From b051a7f0ae84738d4e5354b3d28a2a16308dfeab Mon Sep 17 00:00:00 2001 From: Maxence Maireaux Date: Thu, 10 Oct 2024 23:38:40 +0200 Subject: [PATCH] feat: Add benchmarks to the GoReleaser configuration, allowing packaging and publishing of benchmarks alongside the ledger (#504) --- .goreleaser.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9e6beac2c..305ce0f27 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -51,6 +51,7 @@ archives: - id: "{{.ProjectName}}" builds: - ledger + - benchmarks format: tar.gz name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}" @@ -65,11 +66,22 @@ nfpms: formats: - deb - rpm + - id: benchmarks + package_name: ledger-benchmarks + file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + builds: + - benchmarks + homepage: https://formance.com + maintainer: Maxence Maireaux + formats: + - deb + - rpm publishers: - name: fury.io ids: - ledger + - benchmarks dir: "{{ dir .ArtifactPath }}" cmd: curl --http1.1 -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/ledger/ @@ -93,3 +105,20 @@ brews: system "#{bin}/ledger version" install: | bin.install "ledger" + - name: ledger-benchmarks + alternative_names: + - ledger-benchmarks@{{ .Major }} + repository: + owner: formancehq + name: homebrew-tap + pull_request: + enabled: true + base: + owner: formancehq + name: homebrew-tap + branch: main + directory: Formula + homepage: https://formance.com + skip_upload: 'false' + install: | + bin.install "ledger-benchmarks"