From f4e4fbea62096710f1f228be46ca42f4fee54951 Mon Sep 17 00:00:00 2001 From: Dingli Zhang Date: Tue, 23 Aug 2022 10:10:04 +0800 Subject: [PATCH] Add support for riscv64 (#3071) --- .github/workflows/build-and-push-image.yml | 4 ++-- Makefile.cross-compiles | 2 +- package.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-push-image.yml b/.github/workflows/build-and-push-image.yml index b7f7318b..70ae951a 100644 --- a/.github/workflows/build-and-push-image.yml +++ b/.github/workflows/build-and-push-image.yml @@ -62,7 +62,7 @@ jobs: with: context: . file: ./dockerfiles/Dockerfile-for-frpc - platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x push: true tags: | ${{ env.TAG_FRPC }} @@ -73,7 +73,7 @@ jobs: with: context: . file: ./dockerfiles/Dockerfile-for-frps - platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x + platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/riscv64,linux/s390x push: true tags: | ${{ env.TAG_FRPS }} diff --git a/Makefile.cross-compiles b/Makefile.cross-compiles index 9351924a..06e10d79 100644 --- a/Makefile.cross-compiles +++ b/Makefile.cross-compiles @@ -2,7 +2,7 @@ export PATH := $(GOPATH)/bin:$(PATH) export GO111MODULE=on LDFLAGS := -s -w -os-archs=darwin:amd64 darwin:arm64 freebsd:386 freebsd:amd64 linux:386 linux:amd64 linux:arm linux:arm64 windows:386 windows:amd64 linux:mips64 linux:mips64le linux:mips:softfloat linux:mipsle:softfloat +os-archs=darwin:amd64 darwin:arm64 freebsd:386 freebsd:amd64 linux:386 linux:amd64 linux:arm linux:arm64 windows:386 windows:amd64 linux:mips64 linux:mips64le linux:mips:softfloat linux:mipsle:softfloat linux:riscv64 all: build diff --git a/package.sh b/package.sh index 2f9a0f20..1a63a4e8 100755 --- a/package.sh +++ b/package.sh @@ -15,7 +15,7 @@ rm -rf ./release/packages mkdir -p ./release/packages os_all='linux windows darwin freebsd' -arch_all='386 amd64 arm arm64 mips64 mips64le mips mipsle' +arch_all='386 amd64 arm arm64 mips64 mips64le mips mipsle riscv64' cd ./release