mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-29 03:24:07 +00:00
chore(tools/monorel): re-init .goreleaser.yaml
This commit is contained in:
parent
9d11500cd6
commit
a4c4deabfa
@ -34,34 +34,57 @@ builds:
|
|||||||
- plan9
|
- plan9
|
||||||
- solaris
|
- solaris
|
||||||
- wasip1
|
- 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
|
- windows
|
||||||
# iOS requires CGO_ENABLED=1 and the Xcode toolchain.
|
goarch:
|
||||||
#- id: monorel-ios
|
- 386
|
||||||
# binary: monorel
|
- amd64
|
||||||
# env:
|
- arm64
|
||||||
# - CGO_ENABLED=1
|
goamd64:
|
||||||
# goos:
|
- v1
|
||||||
# - ios
|
- v2
|
||||||
# Android CGO_ENABLED=0 builds arm64 only; CGO builds require the NDK.
|
- v3
|
||||||
#- id: monorel-android
|
- v4
|
||||||
# binary: monorel
|
|
||||||
# env:
|
|
||||||
# - CGO_ENABLED=0
|
|
||||||
# goos:
|
|
||||||
# - android
|
|
||||||
# goarch:
|
|
||||||
# - arm64
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- id: monorel
|
- id: monorel
|
||||||
ids: [monorel]
|
ids: [monorel, monorel-windows]
|
||||||
formats: [tar.gz, tar.zst]
|
formats: [tar.gz, tar.zst]
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
# 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.
|
# it uses the VERSION env var so the prefixed monorepo tag doesn't appear in archive filenames.
|
||||||
name_template: >-
|
name_template: >-
|
||||||
monorel_{{ .Env.VERSION }}_
|
monorel_{{ .Env.VERSION }}_
|
||||||
{{- title .Os }}_
|
{{- 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 if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user