2688c54929
- 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>
39 lines
641 B
YAML
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"
|