Skip to content

Commit 1bc64b0

Browse files
committed
ci: fix riscv64 wheel build (pip frontend, skip musllinux on PRs)
The riscv64 job failed at 'which uv' inside the build container: setup-uv installs uv on the runner, but cibuildwheel 3.2.1 does not provision uv inside the riscv64 container, so the default build[uv] frontend cannot find it. Use the plain build (pip) frontend for riscv64. Also mirror the main job's CIBW_SKIP so musllinux is only built on release, matching the other architectures. Signed-off-by: Bruno Verachten <[email protected]>
1 parent 3913e27 commit 1bc64b0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/build-wheels.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,15 @@ jobs:
117117
# On riscv64 the pypa/cibuildwheel action calls actions/setup-python
118118
# internally, which has no riscv64 binaries. Run cibuildwheel via uvx
119119
# instead. Keep version in sync with pypa/[email protected] above.
120+
# uv ships riscv64 binaries, but cibuildwheel 3.2.1 doesn't know to install
121+
# uv inside the riscv64 build container, so the default build[uv] frontend
122+
# fails with "which uv ... code 1". Use the plain build (pip) frontend here.
123+
# Also mirror the main job's musllinux skip on non-release builds.
120124
- name: Build & Test Wheels (riscv64 native)
121125
env:
122126
CIBW_ARCHS: riscv64
127+
CIBW_BUILD_FRONTEND: build
128+
CIBW_SKIP: "${{ !inputs.build-all && '*-musllinux_*' || '' }}"
123129
PACKAGE_DIR: "dist/${{ inputs.sdist-name }}"
124130
run: >-
125131
uvx --from cibuildwheel==3.2.1

0 commit comments

Comments
 (0)