Skip to content

feat(build): add riscv64 to release binaries#5435

Closed
xingzihai wants to merge 1 commit intojesseduffield:masterfrom
xingzihai:feat/add-riscv64-support
Closed

feat(build): add riscv64 to release binaries#5435
xingzihai wants to merge 1 commit intojesseduffield:masterfrom
xingzihai:feat/add-riscv64-support

Conversation

@xingzihai
Copy link
Copy Markdown

Summary

Add riscv64 to the goarch list in .goreleaser.yml to support RISC-V hardware.

Changes

  • Added riscv64 architecture to goreleaser config
  • This will produce lazygit_<version>_linux_riscv64.tar.gz (and freebsd_riscv64) in releases

Why

Users on RISC-V hardware (VisionFive 2, LicheePi 4A, SiFive boards) currently must build from source. Since lazygit builds with CGO_ENABLED=0 and Go has supported GOARCH=riscv64 since Go 1.14, this is a straightforward addition with no special toolchain required.

Testing

The issue author has verified that lazygit builds and tests pass on native riscv64 hardware: https://github.com/gounthar/lazygit/actions/runs/23536886583

Fixes #5419

Add riscv64 architecture to goreleaser config to support
RISC-V hardware (VisionFive 2, LicheePi 4A, SiFive boards).

Go has supported GOARCH=riscv64 as a first-class target
since Go 1.14, and lazygit builds with CGO_ENABLED=0,
so no special toolchain is required.

Fixes jesseduffield#5419
@stefanhaller
Copy link
Copy Markdown
Collaborator

Closing as not planned, see #5419

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add riscv64 to release binaries

2 participants