From 8b76e9c5ee96a7457491f1d08a982a6c5b156536 Mon Sep 17 00:00:00 2001 From: Iggy Jackson Date: Mon, 21 Aug 2023 00:57:41 +0000 Subject: [PATCH] Add RISC-V 64 support Add goreleaser and Makefile entries to build/deploy riscv64 assets --- .goreleaser.yml | 1 + Makefile | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 9c8c4df48..235fd41bd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -10,6 +10,7 @@ builds: - arm64 - ppc64le - s390x + - riscv64 goarm: - 6 - 7 diff --git a/Makefile b/Makefile index 4ea875953..83de45eac 100644 --- a/Makefile +++ b/Makefile @@ -45,6 +45,10 @@ else ifeq ($(GOARCH), ppc64le) ARCH_TAG_PREFIX=$(GOARCH) FILE_ARCH=64-bit PowerPC DOCKER_ARCH=ppc64le/ +else ifeq ($(GOARCH), riscv64) +ARCH_TAG_PREFIX=$(GOARCH) +FILE_ARCH=UCB RISC-V, RVC, double-float ABI +DOCKER_ARCH=riscv64/ else ARCH_TAG_PREFIX=amd64 FILE_ARCH=x86-64 @@ -135,7 +139,7 @@ push: container docker-login ## Pushes a Docker container image to a registry. push-manifest: @echo Starting kube-router manifest push. ./manifest-tool push from-args \ - --platforms linux/amd64,linux/arm64,linux/arm,linux/s390x,linux/ppc64le \ + --platforms linux/amd64,linux/arm64,linux/arm,linux/s390x,linux/ppc64le,linux/riscv64 \ --template "$(REGISTRY_DEV):ARCH-$(MANIFEST_TAG)" \ --target "$(REGISTRY_DEV):$(MANIFEST_TAG)" @@ -149,12 +153,12 @@ push-release: push push-manifest-release: @echo Starting kube-router manifest push. ./manifest-tool push from-args \ - --platforms linux/amd64,linux/arm64,linux/arm,linux/s390x,linux/ppc64le \ + --platforms linux/amd64,linux/arm64,linux/arm,linux/s390x,linux/ppc64le,linux/riscv64 \ --template "$(REGISTRY):ARCH-${RELEASE_TAG}" \ --target "$(REGISTRY):$(RELEASE_TAG)" ./manifest-tool push from-args \ - --platforms linux/amd64,linux/arm64,linux/arm,linux/s390x,linux/ppc64le \ + --platforms linux/amd64,linux/arm64,linux/arm,linux/s390x,linux/ppc64le,linux/riscv64 \ --template "$(REGISTRY):ARCH-${RELEASE_TAG}" \ --target "$(REGISTRY):latest"