diff --git a/tools/monorel/.goreleaser.yaml b/tools/monorel/.goreleaser.yaml index d5ad127..a2a2b98 100644 --- a/tools/monorel/.goreleaser.yaml +++ b/tools/monorel/.goreleaser.yaml @@ -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 }}