Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature add arm builds #283

Merged
merged 3 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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