Skip to content

Commit

Permalink
.goreleaser.yml
Browse files Browse the repository at this point in the history
pnsafonov committed Apr 27, 2024

Verified

This commit was signed with the committer’s verified signature.
1 parent 93e387b commit 5e45f00
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# to test
# docker run -ti -v "$PWD:$PWD" -w "$PWD" goreleaser/goreleaser:latest release --snapshot --rm-dist
project_name: pind

before:
hooks:
- go mod download

release:
draft: true

builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
# - windows
# - darwin
flags:
- -trimpath
ldflags:
# omit symbol table and debug information
- -s -w
- -X main.commit={{.Commit}}
- -X main.date={{.CommitDate}}
- -X main.builtBy=goreleaser
checksum:
name_template: "checksums.txt"

archives:
- files:
# skip all other files
- none*
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
# pind_1.0.1_linux_amd64.tar.gz
# pind_1.0.1_macos_arm64.zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macos_
{{- else }}{{ .Os }}_{{ end }}
{{- .Arch }}
#changelog:
# sort: asc
# filters:
# exclude:
# - "^Merge"

brews:
- skip_upload: auto
repository:
owner: pnsafonov
name: homebrew-tap
directory: Formula
homepage: https://github.com/pnsafonov/pind
description: pind - daemon for pinning cpu cores to processes
license: MIT
test: |
system "#{bin}/pind --version"

0 comments on commit 5e45f00

Please sign in to comment.