Skip to content

Commit a301761

Browse files
authored
build: riscv64 wheels (#2055)
* build wheel for riscv64 Co-authored by: [email protected]; * update `EXPECTED` number for riscv64 Co-authored by: [email protected]; * pin `setup-qemu-action` version for CI Co-authored by: [email protected];
1 parent 5daff8d commit a301761

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/kit.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
PIP_DISABLE_PIP_VERSION_CHECK: 1
3737
# PYVERSIONS: changing the list of versions will change the number of
3838
# expected distributions. This must match the same number in publish.yml.
39-
EXPECTED: 88
39+
EXPECTED: 104
4040

4141
permissions:
4242
contents: read
@@ -73,7 +73,7 @@ jobs:
7373
#
7474
# # For each OS, what arch to use with cibuildwheel:
7575
# os_archs = {
76-
# "ubuntu": ["x86_64", "i686", "aarch64"],
76+
# "ubuntu": ["x86_64", "i686", "aarch64", "riscv64"],
7777
# "macos": ["arm64", "x86_64"],
7878
# "windows": ["x86", "AMD64", "ARM64"],
7979
# }
@@ -128,6 +128,12 @@ jobs:
128128
- {"os": "ubuntu", "py": "cp312", "arch": "aarch64", "os-version": "22.04-arm"}
129129
- {"os": "ubuntu", "py": "cp313", "arch": "aarch64", "os-version": "22.04-arm"}
130130
- {"os": "ubuntu", "py": "cp314", "arch": "aarch64", "os-version": "22.04-arm"}
131+
- {"os": "ubuntu", "py": "cp39", "arch": "riscv64"}
132+
- {"os": "ubuntu", "py": "cp310", "arch": "riscv64"}
133+
- {"os": "ubuntu", "py": "cp311", "arch": "riscv64"}
134+
- {"os": "ubuntu", "py": "cp312", "arch": "riscv64"}
135+
- {"os": "ubuntu", "py": "cp313", "arch": "riscv64"}
136+
- {"os": "ubuntu", "py": "cp314", "arch": "riscv64"}
131137
- {"os": "macos", "py": "cp39", "arch": "arm64", "os-version": "13"}
132138
- {"os": "macos", "py": "cp310", "arch": "arm64", "os-version": "13"}
133139
- {"os": "macos", "py": "cp311", "arch": "arm64", "os-version": "13"}
@@ -156,7 +162,7 @@ jobs:
156162
- {"os": "windows", "py": "cp312", "arch": "ARM64", "os-version": "11-arm"}
157163
- {"os": "windows", "py": "cp313", "arch": "ARM64", "os-version": "11-arm"}
158164
- {"os": "windows", "py": "cp314", "arch": "ARM64", "os-version": "11-arm"}
159-
# [[[end]]] (sum: 7BoHzaIHKR)
165+
# [[[end]]] (sum: 0tXzcJPEQS)
160166
# ^^^^^^^^^^^^^^^
161167
# If a check fails and points to this checksum line, it means you edited
162168
# the matrix directly instead of editing the Python code in the comment
@@ -193,7 +199,9 @@ jobs:
193199
- name: "Install tools"
194200
run: |
195201
python -m pip install -r requirements/kit.pip
196-
202+
- name: Set up QEMU
203+
if: ${{ matrix.arch == 'riscv64' }}
204+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
197205
- name: "Build binary wheels"
198206
env:
199207
CIBW_BUILD: ${{ matrix.py }}*-*

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ defaults:
1717
env:
1818
# PYVERSIONS: changing the list of versions will change the number of
1919
# expected distributions. This must match the same number in kit.yml.
20-
EXPECTED: 88
20+
EXPECTED: 104
2121

2222
permissions:
2323
contents: read

0 commit comments

Comments
 (0)