chore(tools/monorel): re-init .goreleaser.yaml

This commit is contained in:
AJ ONeal 2026-03-28 17:15:07 -06:00
parent 9d11500cd6
commit a4c4deabfa
No known key found for this signature in database

View File

@ -34,34 +34,57 @@ builds:
- plan9
- solaris
- wasip1
goarch:
- 386
- amd64
- arm
- arm64
- loong64
- mips
- mips64
- mips64le
- mipsle
- ppc64
- ppc64le
- riscv64
- s390x
- wasm
goarm:
- 6
- 7
goamd64:
- v1
- v2
- v3
- v4
- id: monorel-windows
binary: monorel
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Env.VERSION}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
goos:
- windows
# iOS requires CGO_ENABLED=1 and the Xcode toolchain.
#- id: monorel-ios
# binary: monorel
# env:
# - CGO_ENABLED=1
# goos:
# - ios
# Android CGO_ENABLED=0 builds arm64 only; CGO builds require the NDK.
#- id: monorel-android
# binary: monorel
# env:
# - CGO_ENABLED=0
# goos:
# - android
# goarch:
# - arm64
goarch:
- 386
- amd64
- arm64
goamd64:
- v1
- v2
- v3
- v4
archives:
- id: monorel
ids: [monorel]
ids: [monorel, monorel-windows]
formats: [tar.gz, tar.zst]
# this name template makes the OS and Arch compatible with the results of `uname`.
# it uses the VERSION env var so the prefixed monorepo tag doesn't appear in archive filenames.
name_template: >-
monorel_{{ .Env.VERSION }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- if eq .Arch "amd64" }}x86_64{{ if .Amd64 }}_{{ .Amd64 }}{{ end }}
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}