Skip to content

Commit e933dc4

Browse files
committed
feat: try manylinux_2_35_riscv64
1 parent 1253144 commit e933dc4

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/build.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ jobs:
5454
("x86_64", "ubuntu-24.04", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")),
5555
("aarch64", "ubuntu-24.04-arm", ("manylinux2014", "manylinux_2_28", "manylinux_2_34", "musllinux_1_2")),
5656
("i686", "ubuntu-24.04", ("manylinux2014", "musllinux_1_2")),
57-
("armv7l", "ubuntu-24.04-arm", ("manylinux_2_31", "musllinux_1_2")),
57+
("armv7l", "ubuntu-24.04-arm", ("manylinux_2_35", "manylinux_2_31", "musllinux_1_2")),
58+
("riscv64", "ubuntu-24.04", ("manylinux_2_35", "manylinux_2_31", "musllinux_1_2")),
5859
]
5960
expanded = [{"policy": policy, "platform": platform, "runner": runner} for platform, runner, policies in reduced for policy in policies]
6061
print(json.dumps(expanded, indent=2))
@@ -82,6 +83,15 @@ jobs:
8283
with:
8384
fetch-depth: 50
8485

86+
- name: Set up QEMU
87+
if: matrix.platform == 'riscv64'
88+
uses: docker/setup-qemu-action@v3
89+
with:
90+
# This should be temporary
91+
# xref https://github.com/docker/setup-qemu-action/issues/188
92+
# xref https://github.com/tonistiigi/binfmt/issues/215
93+
image: tonistiigi/binfmt:qemu-v8.1.5
94+
8595
- name: Set up Docker Buildx
8696
uses: docker/setup-buildx-action@v3
8797

docker/build_scripts/finalize.sh

+6
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ for TOOL_PATH in "${MY_DIR}/requirements-tools/"*; do
8686
case ${AUDITWHEEL_PLAT}-${TOOL} in
8787
musllinux*_ppc64le-uv) continue;; # uv doesn't provide musl ppc64le wheels due to Rust issues
8888
musllinux*_s390x-uv) continue;; # uv doesn't provide musl s390x wheels due to Rust issues
89+
*_riscv64-uv) continue;; # no uv for riscv64
90+
*_riscv64-cmake|*_riscv64-swig) manylinux_pkg_install "${TOOL}";;
91+
*_riscv64-patchelf)
92+
manylinux_pkg_install cmake
93+
pipx install patchelf==0.17.2.1
94+
;;
8995
*) pipx install --pip-args="--require-hashes -r ${TOOL_PATH} --only-binary" "${TOOL}";;
9096
esac
9197
done

0 commit comments

Comments
 (0)