Add RISC-V (riscv64) architecture support#1008
Merged
Conversation
Co-authored-by: schollz <6550035+schollz@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix croc installer failure on RISC-V architecture
Add RISC-V (riscv64) architecture support
Nov 20, 2025
Owner
|
@copilot don't use go releaser, use the GitHub action to build the risc build |
Co-authored-by: schollz <6550035+schollz@users.noreply.github.com>
Contributor
Author
Done! I've removed the goreleaser changes and added RISC-V builds to the GitHub Actions workflows instead:
Commit: 4e07a4d |
schollz
approved these changes
Nov 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The installer script fails on RISC-V systems with a 404 error because
riscv64architecture maps tounknown, generating a non-existent release filename (croc_v10.3.0_Linux-unknown.tar.gz).Changes
.github/workflows/release.yml: Added RISC-V to the build matrix.github/workflows/ci.yml: Added RISC-V build to CI testingCGO_ENABLED=0 GOOS=linux GOARCH=riscv64 go build -ldflags '-extldflags "-static"' -o croc-linux-riscv64src/install/default.txt: Added architecture mappingGitHub Actions will now build
croc_v10.3.0_Linux-RISCV64.tar.gzduring releases and the installer will correctly download it on RISC-V systems.Original prompt
<issue_description>### What happened?
I tried to install croc from the command line, but the installer failed:
It looks like there is no release for
riscv64and the installer script falls back toLinux-unknown.tar.gzwhich doesn't exist eitherWhat did you expect to happen?
I hoped it would work
Steps to reproduce
I ran this on a RISC-V (RV64GC) machine:
croc version
10.3.0 I guess??
Operating System
Linux
OS Version
Debian GNU/Linux forky/sid
Relevant log output
Additional context
(this is really a feature request for RISC-V support, but GitHub forces me to use a bug template for some reason)</issue_description>
Comments on the Issue (you are @copilot in this section)
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.