Skip to content

Commit 204623d

Browse files
dan-blanchardclaude
andcommitted
ci: invoke cibuildwheel manually on riscv64 runner
The pypa/cibuildwheel action internally calls actions/setup-python, which has no prebuilt Python binaries for riscv64. On the native RISE riscv64 runner, invoke cibuildwheel directly with the system Python. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 78c1d20 commit 204623d

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,23 @@ jobs:
5454
with:
5555
fetch-depth: 0
5656
- uses: astral-sh/setup-uv@v7
57-
- uses: pypa/[email protected]
57+
# The pypa/cibuildwheel action internally calls actions/setup-python,
58+
# which has no riscv64 binaries. On native riscv64 runners, invoke
59+
# cibuildwheel directly with the system Python instead.
60+
- if: matrix.name != 'linux-riscv64'
61+
uses: pypa/[email protected]
5862
env:
5963
CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs_linux }}
6064
CIBW_ENVIRONMENT_PASS_LINUX: HATCH_BUILD_HOOK_ENABLE_MYPYC
6165
HATCH_BUILD_HOOK_ENABLE_MYPYC: "true"
66+
- if: matrix.name == 'linux-riscv64'
67+
run: |
68+
pip install cibuildwheel
69+
cibuildwheel --output-dir wheelhouse
70+
env:
71+
CIBW_ARCHS_LINUX: riscv64
72+
CIBW_ENVIRONMENT_PASS_LINUX: HATCH_BUILD_HOOK_ENABLE_MYPYC
73+
HATCH_BUILD_HOOK_ENABLE_MYPYC: "true"
6274
- uses: actions/upload-artifact@v4
6375
with:
6476
name: dist-mypyc-${{ matrix.name }}

0 commit comments

Comments
 (0)