From 2b44343e9d43a2c8c0e268aa7c3b841d1dcad8ab Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 1 Feb 2024 13:22:35 -0300 Subject: [PATCH] feat: build for armv6 (#116) * feat: build for armv6 Signed-off-by: Carlos Alexandro Becker * fix: deb name templates --------- Signed-off-by: Carlos Alexandro Becker --- goreleaser-full.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/goreleaser-full.yaml b/goreleaser-full.yaml index 4f1dea6..aaec3b9 100644 --- a/goreleaser-full.yaml +++ b/goreleaser-full.yaml @@ -47,12 +47,13 @@ builds: - "386" - arm goarm: + - "6" - "7" ignore: - goos: windows goarch: arm64 - goos: windows - goarm: "7" + goarch: arm archives: - format_overrides: @@ -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* @@ -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 @@ -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 }}"