Skip to content

Commit

Permalink
feat: Add benchmarks to the GoReleaser configuration, allowing packag…
Browse files Browse the repository at this point in the history
…ing and publishing of benchmarks alongside the ledger (#504)
  • Loading branch information
flemzord authored and gfyrag committed Oct 16, 2024
1 parent c800b9b commit b051a7f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ archives:
- id: "{{.ProjectName}}"
builds:
- ledger
- benchmarks
format: tar.gz
name_template: "{{.ProjectName}}_{{.Os}}-{{.Arch}}"

Expand All @@ -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 <[email protected]>
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/

Expand All @@ -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"

0 comments on commit b051a7f

Please sign in to comment.