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

Add support for the arm64 architecture #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ before:
- go mod tidy
- go mod vendor
builds:
-
-
id: commenter
main: ./cmd/commenter
binary: commenter
Expand All @@ -14,6 +14,7 @@ builds:
- linux
goarch:
- amd64
- arm64

snapshot:
name_template: "{{ .Tag }}-next"
Expand Down
12 changes: 11 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,19 @@ function get_release_assets {
}

function install_release {
arch=""
case "$(uname -m)" in
"aarch64")
arch="arm64"
;;
"x86_64")
arch="amd64"
;;
esac

repo="$1"
version="$2"
binary="$3-linux-amd64"
binary="$3-linux-$arch"
checksum="$4"
release_assets="$(get_release_assets "${repo}" "${version}")"

Expand Down
1 change: 1 addition & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

export GO111MODULE=auto
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o bin/commenter-linux-amd64 ./cmd/commenter
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o bin/commenter-linux-arm64 ./cmd/commenter