Skip to content

Commit 2fcb39e

Browse files
committed
ci: add riscv64 wheel builds
RISC-V wheels have been supported by cibuildwheel and PyPI for a while, so let's build binary wheels for it as many of the boards currently on the market are rather slow to make building on the spot rather painful. Human note: The entirety of the commit message is written manually. See: pypa/cibuildwheel#2366 See: pypi/warehouse#18243 Assisted-by: GPT-5.5
1 parent b7c234c commit 2fcb39e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ jobs:
108108
- name: linux-ppc64le
109109
qemu_platform: linux/ppc64le
110110
cibw_arch: ppc64le
111+
- name: linux-riscv64
112+
qemu_platform: linux/riscv64
113+
cibw_arch: riscv64
111114

112115
steps:
113116
- uses: actions/setup-python@v6

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ before-all = "sh build.sh"
1515
test-command = "pytest"
1616
test-sources = ["test", "pytest.ini"]
1717
before-test = "pip install -r {package}/requirements-test.txt"
18-
# Will avoid testing on emulated architectures (specifically ppc64le)
18+
# Will avoid testing on emulated architectures (specifically ppc64le and riscv64)
1919
# Also, skip testing pypy on macOS arm64 due issue with bootstrapping git config paths
2020
# see https://github.com/libgit2/pygit2/issues/1442
21-
test-skip = "*-*linux_ppc64le pp*-macosx_arm64"
21+
test-skip = "*-*linux_ppc64le *-*linux_riscv64 pp*-macosx_arm64"
2222

2323
[tool.cibuildwheel.linux]
2424
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib64 auditwheel repair -w {dest_dir} {wheel}"

0 commit comments

Comments
 (0)