Skip to content

Commit

Permalink
feature add arm builds (#283)
Browse files Browse the repository at this point in the history
* add ARM v6 support

* Add ARM builds

Co-authored-by: Michael Riley <[email protected]>
  • Loading branch information
mondragonfx and optik-aper committed Oct 4, 2022
1 parent 5a53115 commit 231c3dc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ builds:
goarch:
- amd64
- arm64

- arm

goarm:
- 6
- 7

archives:
-
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -37,4 +40,4 @@ format:

docker:
docker build . -t vultr/vultr-cli
docker push vultr/vultr-cli
docker push vultr/vultr-cli
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`.

Expand Down

0 comments on commit 231c3dc

Please sign in to comment.