mirror of
https://github.com/charmbracelet/glow
synced 2024-12-14 06:02:27 +00:00
Add goreleaser config to help automate builds for various platforms
We're currently building the following targets: - Linux 386/x64/armv6/arm64 - Windows 386/x64 - macOS x64
This commit is contained in:
parent
08dd80a922
commit
47ac9b7afc
1 changed files with 47 additions and 0 deletions
47
.goreleaser.yml
Normal file
47
.goreleaser.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
env:
|
||||||
|
- GO111MODULE=on
|
||||||
|
before:
|
||||||
|
hooks:
|
||||||
|
- go mod download
|
||||||
|
builds:
|
||||||
|
-
|
||||||
|
binary: gold
|
||||||
|
ldflags: -s -w -X main.Version={{ .Version }} -X main.CommitSHA={{ .Commit }}
|
||||||
|
goos:
|
||||||
|
- linux
|
||||||
|
- darwin
|
||||||
|
- windows
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
- 386
|
||||||
|
- arm
|
||||||
|
goarm:
|
||||||
|
- 6
|
||||||
|
- 7
|
||||||
|
ignore:
|
||||||
|
- goos: darwin
|
||||||
|
goarch: 386
|
||||||
|
- goos: linux
|
||||||
|
goarch: arm
|
||||||
|
goarm: 7
|
||||||
|
sign:
|
||||||
|
artifacts: checksum
|
||||||
|
archives:
|
||||||
|
-
|
||||||
|
replacements:
|
||||||
|
darwin: Darwin
|
||||||
|
linux: Linux
|
||||||
|
windows: Windows
|
||||||
|
386: i386
|
||||||
|
amd64: x86_64
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ .Tag }}-next"
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
Loading…
Reference in a new issue