This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
go-monero/.goreleaser.yml
Ciro S. Costa 2688c54929 prepare for release
- making use of `goreleaser`, we can make building for all platforms
easy peasy, leveraging go's ability to create reproducible builds given
a set of flags that we can have under in a declarative fashion under
`goreleaser.yaml`

Signed-off-by: Ciro S. Costa <utxobr@protonmail.com>
2021-07-10 22:34:32 -04:00

39 lines
641 B
YAML

builds:
- binary: monero
main: ./cmd/monero
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
tags:
- osusergo
- netgo
- static_build
flags:
- -trimpath
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
mod_timestamp: '{{ .CommitTimestamp }}'
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"