Skip to content

ci: build and test riscv64 wheels - #144

Open
justeph wants to merge 1 commit into
ada-url:mainfrom
justeph:ci/riscv64-support
Open

justeph wants to merge 1 commit into
ada-url:mainfrom
justeph:ci/riscv64-support

Conversation

@justeph

@justeph justeph commented Nov 12, 2026

Copy link
Copy Markdown

Now that cibuildwheel and PyPI support riscv64, we can start building riscv64 wheels.

Integrated in the same way as the other emulated architecture (aarch64), running on the x86_64 runner via QEMU emulation.

Now that cibuildwheel and PyPI support riscv64, we can start building
riscv64 wheels.

Integrated in the same way as the other emulated architecture
(aarch64), running on the x86_64 runner via QEMU emulation.

Signed-off-by: Julien Stephan <jstephan@baylibre.com>
@justeph

justeph commented Nov 12, 2026

Copy link
Copy Markdown
Author

FYI, RISE provides free native RISC-V GitHub Actions runners (https://riseproject.dev/2026/03/24/announcing-the-rise-risc-v-runners-free-native-risc-v-ci-on-github/). Happy to update this PR to build on a native riscv64 runner instead of emulating via QEMU, if that's preferred.

@justeph

justeph commented Nov 12, 2026 •

Copy link
Copy Markdown
Author

I am upstreaming this as part of our work with RISE (https://riseproject.dev/) to promote riscv64 support in the Python ecosystem. We already build, deploy and test a riscv64 wheel for ada-url: https://pypi.riseproject.dev/packages/ada-url.html#ada-url

FYI, here are the actions on my personal fork (with additional wip commit on top to make sure the Action run): https://github.com/justeph/ada-python/actions/runs/43194099012.

You can notice that a build for a single python version takes approximately 6 minutes for riscv64, while it takes only 3 minutes for aarch64. This is because ada-python depends on cffi. Upstream cffi does not (yet) ship riscv64 wheels: riscv64 support was merged recently, so the next cffi release should contain riscv64 wheels. See python-cffi/cffi#227.

This branch has not been deployed

No deployments
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.

1 participant