From b111e7bd12b53deaa1cf712ffa86c6e5c29597f8 Mon Sep 17 00:00:00 2001 From: Tobias Salzmann <796084+Eun@users.noreply.github.com> Date: Thu, 13 Oct 2022 11:45:44 +0200 Subject: [PATCH] add armv5 & armv7 builds --- .goreleaser.yml | 6 ++++-- docs/static/install.sh | 6 ++++++ install-task.sh | 6 ++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 60a03fc0..f6391fc1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -11,7 +11,9 @@ build: - arm - arm64 goarm: + - 5 - 6 + - 7 ignore: - goos: darwin goarch: 386 @@ -27,7 +29,7 @@ gomod: proxy: true archives: - - name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}" + - name_template: "{{.Binary}}_{{.Os}}_{{.Arch}}{{ if .Arm }}v{{ .Arm }}{{ end }}" files: - README.md - LICENSE @@ -56,7 +58,7 @@ nfpms: formats: - deb - rpm - file_name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}" + file_name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}{{ if .Arm }}v{{ .Arm }}{{ end }}" contents: - src: completion/bash/task.bash dst: /etc/bash_completion.d/task diff --git a/docs/static/install.sh b/docs/static/install.sh index 5b488b0e..c1842de6 100755 --- a/docs/static/install.sh +++ b/docs/static/install.sh @@ -64,15 +64,21 @@ get_binaries() { case "$PLATFORM" in darwin/amd64) BINARIES="task" ;; darwin/arm64) BINARIES="task" ;; + darwin/armv5) BINARIES="task" ;; darwin/armv6) BINARIES="task" ;; + darwin/armv7) BINARIES="task" ;; linux/386) BINARIES="task" ;; linux/amd64) BINARIES="task" ;; linux/arm64) BINARIES="task" ;; + linux/armv5) BINARIES="task" ;; linux/armv6) BINARIES="task" ;; + linux/armv7) BINARIES="task" ;; windows/386) BINARIES="task" ;; windows/amd64) BINARIES="task" ;; windows/arm64) BINARIES="task" ;; + windows/armv5) BINARIES="task" ;; windows/armv6) BINARIES="task" ;; + windows/armv7) BINARIES="task" ;; *) log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new" exit 1 diff --git a/install-task.sh b/install-task.sh index 5b488b0e..c1842de6 100755 --- a/install-task.sh +++ b/install-task.sh @@ -64,15 +64,21 @@ get_binaries() { case "$PLATFORM" in darwin/amd64) BINARIES="task" ;; darwin/arm64) BINARIES="task" ;; + darwin/armv5) BINARIES="task" ;; darwin/armv6) BINARIES="task" ;; + darwin/armv7) BINARIES="task" ;; linux/386) BINARIES="task" ;; linux/amd64) BINARIES="task" ;; linux/arm64) BINARIES="task" ;; + linux/armv5) BINARIES="task" ;; linux/armv6) BINARIES="task" ;; + linux/armv7) BINARIES="task" ;; windows/386) BINARIES="task" ;; windows/amd64) BINARIES="task" ;; windows/arm64) BINARIES="task" ;; + windows/armv5) BINARIES="task" ;; windows/armv6) BINARIES="task" ;; + windows/armv7) BINARIES="task" ;; *) log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new" exit 1