Skip to content

Commit

Permalink
Add s390x architecture support
Browse files Browse the repository at this point in the history
  • Loading branch information
hmsjy2017 committed Apr 26, 2022
1 parent d027d1c commit 064bce2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ build-linux-arm:
GOOS=linux GOARCH=arm $(GO) build $(GO_FLAGS) -o bin/linux-arm/g
build-linux-arm64:
GOOS=linux GOARCH=arm64 $(GO) build $(GO_FLAGS) -o bin/linux-arm64/g
build-linux-s390x:
GOOS=linux GOARCH=s390x $(GO) build $(GO_FLAGS) -o bin/linux-s390x/g


build-darwin: build-darwin-amd64 build-darwin-arm64
Expand Down
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ function get_arch() {
"armv6l" | "armv7l")
echo "arm"
;;
"s390x")
echo "s390x"
;;
*)
echo ${NIL}
;;
Expand Down
8 changes: 7 additions & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ function get_arch() {
"aarch64" | "arm64")
echo "arm64"
;;
"armv6l" | "armv7l")
echo "arm"
;;
"s390x")
echo "s390x"
;;
*)
echo ${NIL}
;;
Expand Down Expand Up @@ -50,7 +56,7 @@ main() {

local release="1.3.0"

for item in "darwin_amd64" "darwin_arm64" "linux_386" "linux_amd64" "linux_arm" "linux_arm64" "windows_386" "windows_amd64" "windows_arm" "windows_arm64"; do
for item in "darwin_amd64" "darwin_arm64" "linux_386" "linux_amd64" "linux_arm" "linux_arm64" "linux_s390x" "windows_386" "windows_amd64" "windows_arm" "windows_arm64"; do
package ${release} ${item}
done

Expand Down

0 comments on commit 064bce2

Please sign in to comment.