Skip to content

Commit

Permalink
Add RISC-V 64 support
Browse files Browse the repository at this point in the history
Add goreleaser and Makefile entries to build/deploy riscv64 assets
  • Loading branch information
iggy authored and aauren committed Aug 28, 2023
1 parent 70defa4 commit 8b76e9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ builds:
- arm64
- ppc64le
- s390x
- riscv64
goarm:
- 6
- 7
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)"

Expand All @@ -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"

Expand Down

0 comments on commit 8b76e9c

Please sign in to comment.