Skip to content

Commit

Permalink
feat: build for armv6 (#116)
Browse files Browse the repository at this point in the history
* feat: build for armv6

Signed-off-by: Carlos Alexandro Becker <[email protected]>

* fix: deb name templates

---------

Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 authored Feb 1, 2024
1 parent 78566d1 commit 2b44343
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions goreleaser-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ builds:
- "386"
- arm
goarm:
- "6"
- "7"
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarm: "7"
goarch: arm

archives:
- format_overrides:
Expand All @@ -65,6 +66,7 @@ archives:
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm}}v{{ . }}{{ end }}
files:
- README*
- LICENSE*
Expand All @@ -76,7 +78,10 @@ nfpms:
homepage: "{{ .Var.homepage }}"
maintainer: "{{ .Var.maintainer }}"
description: "{{ .Var.description }}"
file_name_template: "{{ .ConventionalFileName }}"
file_name_template: >-
{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}
{{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}}
{{- .ConventionalExtension -}}
license: MIT
formats:
- apk
Expand Down Expand Up @@ -112,6 +117,7 @@ brews:
email: "{{ .Var.brew_commit_author_email }}"
homepage: "{{ .Var.homepage }}"
description: "{{ .Var.description }}"
goarm: 7
install: |-
bin.install "{{ with .Var.binary_name }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}"
bash_completion.install "completions/{{ .ProjectName }}.bash" => "{{ .ProjectName }}"
Expand Down

0 comments on commit 2b44343

Please sign in to comment.