Skip to content

ci: add riscv64 to release build matrix#1197

Merged
zwpaper merged 3 commits intolsd-rs:mainfrom
gounthar:feat/release-riscv64
Apr 8, 2026
Merged

ci: add riscv64 to release build matrix#1197
zwpaper merged 3 commits intolsd-rs:mainfrom
gounthar:feat/release-riscv64

Conversation

@gounthar
Copy link
Copy Markdown
Contributor

Adds riscv64gc-unknown-linux-gnu to the cross-compile target list, following the existing pattern. cross-rs has riscv64 Dockerfiles.

Build validated on native riscv64: https://github.com/gounthar/lsd/actions/runs/23478736571

Closes #1196

Closes lsd-rs#1196

Signed-off-by: Bruno Verachten <gounthar@gmail.com>
@gounthar gounthar requested a review from zwpaper as a code owner March 24, 2026 09:16
@gounthar
Copy link
Copy Markdown
Contributor Author

The cross-compilation builds fine but the packaging step fails because the host strip can't handle the riscv64 binary:

strip: Unable to recognise the format of the input file `lsd'

The fix would be to either skip strip for riscv64 or use the cross toolchain's strip (e.g. riscv64-linux-gnu-strip). I can update the PR if you'd like.

Signed-off-by: Bruno Verachten <gounthar@gmail.com>
riscv64-linux-gnu-strip fails with 'not enough room for program headers'
on cross-compiled Rust binaries. Skip strip for riscv64 (same as Windows).

Signed-off-by: Bruno Verachten <gounthar@gmail.com>
@zwpaper zwpaper merged commit 21c1a4a into lsd-rs:main Apr 8, 2026
20 checks passed
@zwpaper
Copy link
Copy Markdown
Member

zwpaper commented Apr 8, 2026

Thanks so much

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 release binaries

2 participants