From 581eb1bbf2f311f6933cdb96f179108e4411f9d0 Mon Sep 17 00:00:00 2001 From: Carlos Mondragon Date: Sun, 25 Sep 2022 15:02:12 -0400 Subject: [PATCH 1/2] add ARM v6 support --- .goreleaser.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index cf6c7e9b..f71883a1 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,6 +20,8 @@ builds: goarch: - amd64 - arm64 + - arm + archives: - @@ -94,4 +96,4 @@ dockers: release: github: owner: vultr - name: vultr-cli \ No newline at end of file + name: vultr-cli From 0f77edc65fefdbd20eb822488e8476d6d71069ec Mon Sep 17 00:00:00 2001 From: Carlos Mondragon Date: Tue, 27 Sep 2022 10:25:55 -0400 Subject: [PATCH 2/2] Add ARM builds --- .goreleaser.yml | 5 ++++- Makefile | 5 ++++- README.md | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index f71883a1..4f8f411e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,7 +21,10 @@ builds: - amd64 - arm64 - arm - + + goarm: + - 6 + - 7 archives: - diff --git a/Makefile b/Makefile index 890911c9..0cb9b938 100644 --- a/Makefile +++ b/Makefile @@ -29,6 +29,9 @@ $(DIR)/vultr-cli_windows_386.exe: $(DIR) $(DIR)/vultr-cli_windows_amd64.exe: $(DIR) env GOOS=windows GOARCH=amd64 go build -o $@ +$(DIR)/vultr-cli_linux_arm: $(DIR) + env GOOS=linux GOARCH=arm go build -o $@ + remove: @rm -rf builds @@ -37,4 +40,4 @@ format: docker: docker build . -t vultr/vultr-cli - docker push vultr/vultr-cli \ No newline at end of file + docker push vultr/vultr-cli diff --git a/README.md b/README.md index fb7e3705..c5a3725d 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ The available make build options are - make builds/vultr-cli_linux_arm64 - make builds/vultr-cli_windows_386.exe - make builds/vultr-cli_windows_amd64.exe +- make builds/vultr-cli_linux_arm Note that the latter method will install the `vultr-cli` executable in `builds/vultr-cli_(name of os + arch)`.