Skip to content

Commit 05f7762

Browse files
committed
feat: Add support for linux/riscv64,in build and installation.
在install.sh中添加检验riscv64架构
1 parent a82e89c commit 05f7762

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ install: build
1616

1717
build-all: build-linux build-darwin build-windows
1818

19-
build-linux: build-linux-386 build-linux-amd64 build-linux-arm build-linux-arm64 build-linux-s390x
19+
build-linux: build-linux-386 build-linux-amd64 build-linux-arm build-linux-arm64 build-linux-s390x build-linux-riscv64
2020
build-linux-386:
2121
GOOS=linux GOARCH=386 $(GO) build $(GO_FLAGS) -o bin/linux-386/g
2222
build-linux-amd64:
@@ -27,6 +27,8 @@ build-linux-arm64:
2727
GOOS=linux GOARCH=arm64 $(GO) build $(GO_FLAGS) -o bin/linux-arm64/g
2828
build-linux-s390x:
2929
GOOS=linux GOARCH=s390x $(GO) build $(GO_FLAGS) -o bin/linux-s390x/g
30+
build-linux-riscv64:
31+
GOOS=linux GOARCH=riscv64 $(GO) build $(GO_FLAGS) -o bin/linux-riscv64/g
3032

3133

3234
build-darwin: build-darwin-amd64 build-darwin-arm64

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ function get_arch() {
1919
"s390x")
2020
echo "s390x"
2121
;;
22+
"riscv64")
23+
echo "riscv64"
24+
;;
2225
*)
2326
echo ${NIL}
2427
;;

0 commit comments

Comments
 (0)