Skip to content

Commit ca97db9

Browse files
committed
CI: Enable release on manylinux_riscv64
It's using x86 runners with QEMU setup
1 parent 249e799 commit ca97db9

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
- [ubuntu-22.04, musllinux_x86_64, ""]
5454
- [ubuntu-22.04-arm, manylinux_aarch64, ""]
5555
- [ubuntu-22.04-arm, musllinux_aarch64, ""]
56+
- [ubuntu-latest, manylinux_riscv64, ""]
5657
- [macos-15-intel, macosx_x86_64, openblas]
5758

5859
# targeting macos >= 14. Could probably build on macos-14, but it would be a cross-compile
@@ -68,6 +69,10 @@ jobs:
6869
python: "cp313t"
6970
- buildplat: [ macos-15-intel, macosx_x86_64, openblas ]
7071
python: "cp314t"
72+
- buildplat: [ ubuntu-latest, manylinux_riscv64, "" ]
73+
python: "cp313t"
74+
- buildplat: [ ubuntu-latest, manylinux_riscv64, "" ]
75+
python: "cp314t"
7176
include:
7277
- buildplat: [ ubuntu-22.04, pyodide_wasm32, "" ]
7378
python: "cp313"
@@ -139,6 +144,16 @@ jobs:
139144
run: |
140145
echo "CIBW_PLATFORM=pyodide" >> "$GITHUB_ENV"
141146
147+
- name: Setup QEMU
148+
if: ${{ matrix.buildplat[1] == 'manylinux_riscv64' }}
149+
uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
150+
151+
- name: manylinux_riscv64 setup
152+
if: ${{ matrix.buildplat[1] == 'manylinux_riscv64' }}
153+
run: |
154+
# Specify the architecture explicitely as we are using QEMU to cross-native-compile
155+
echo "CIBW_ARCHS=riscv64" >> "$GITHUB_ENV"
156+
142157
- name: Build wheels
143158
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
144159
env:

0 commit comments

Comments
 (0)