Skip to content

Commit e06bc60

Browse files
committed
👷 Build wheels for riscv64
Support RISC-V instruction set architecture. Build on manylinux 2_31.
1 parent bd9b65a commit e06bc60

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file is autogenerated by maturin v1.8.7
1+
# This file is autogenerated by maturin v1.12.6
22
# To update, run
33
#
44
# maturin generate-ci --pytest github
@@ -59,6 +59,9 @@ jobs:
5959
runner: ubuntu-24.04-arm
6060
arch: sbsa
6161
feat-flags: "cuda,pyo3"
62+
- target: riscv64
63+
runner: ubuntu-24.04-arm
64+
manylinux: "2_31"
6265
- target: armv7
6366
- target: s390x
6467
- target: ppc64le
@@ -78,7 +81,7 @@ jobs:
7881
target: ${{ matrix.platform.target }}
7982
args: --release --locked --compatibility pypi --features ${{ matrix.platform.feat-flags || 'pyo3' }} --out dist --interpreter python3.13
8083
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
81-
manylinux: "2_28"
84+
manylinux: ${{ matrix.platform.manylinux || '2_28' }}
8285
before-script-linux: |
8386
# Install nvTIFF and clang-devel
8487
if command -v dnf &> /dev/null; then
@@ -102,7 +105,7 @@ jobs:
102105
target: ${{ matrix.platform.target }}
103106
args: --release --locked --compatibility pypi --features ${{ matrix.platform.feat-flags || 'pyo3' }} --out dist --interpreter python3.13t
104107
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
105-
manylinux: "2_28"
108+
manylinux: ${{ matrix.platform.manylinux || '2_28' }}
106109
before-script-linux: |
107110
# Install nvTIFF and clang-devel
108111
if command -v dnf &> /dev/null; then
@@ -127,7 +130,7 @@ jobs:
127130
path: dist/
128131

129132
- name: pytest
130-
if: ${{ endswith(matrix.platform.target, '64') }} # x86_64 and aarch64
133+
if: ${{ contains(fromJSON('["x86_64", "aarch64"]'), matrix.platform.target) }} # x86_64, aarch64
131134
shell: bash
132135
run: |
133136
set -e
@@ -138,7 +141,7 @@ jobs:
138141
pytest --verbose
139142
140143
- name: pytest
141-
if: ${{ !endswith(matrix.platform.target, '64') && !startsWith(github.ref, 'refs/tags/') }} # armv7, s390x and ppc64le
144+
if: ${{ !contains(fromJSON('["x86_64", "aarch64"]'), matrix.platform.target) && !startsWith(github.ref, 'refs/tags/') }} # armv7, s390x, ppc64le, and riscv64
142145
uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
143146
with:
144147
arch: ${{ matrix.platform.target }}

0 commit comments

Comments
 (0)