Skip to content

Commit 6b11fce

Browse files
committed
👷 Build wheels for riscv64
Support RISC-V instruction set architecture.
1 parent bd9b65a commit 6b11fce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 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,8 @@ jobs:
5959
runner: ubuntu-24.04-arm
6060
arch: sbsa
6161
feat-flags: "cuda,pyo3"
62+
- target: riscv64
63+
runner: ubuntu-24.04-arm
6264
- target: armv7
6365
- target: s390x
6466
- target: ppc64le
@@ -127,7 +129,7 @@ jobs:
127129
path: dist/
128130

129131
- name: pytest
130-
if: ${{ endswith(matrix.platform.target, '64') }} # x86_64 and aarch64
132+
if: ${{ contains(fromJSON('["x86_64", "aarch64"]'), matrix.platform.target) }} # x86_64, aarch64
131133
shell: bash
132134
run: |
133135
set -e
@@ -138,7 +140,7 @@ jobs:
138140
pytest --verbose
139141
140142
- name: pytest
141-
if: ${{ !endswith(matrix.platform.target, '64') && !startsWith(github.ref, 'refs/tags/') }} # armv7, s390x and ppc64le
143+
if: ${{ !contains(fromJSON('["x86_64", "aarch64"]'), matrix.platform.target) && !startsWith(github.ref, 'refs/tags/') }} # armv7, s390x, ppc64le, and riscv64
142144
uses: uraimo/run-on-arch-action@d94c13912ea685de38fccc1109385b83fd79427d # v3.0.1
143145
with:
144146
arch: ${{ matrix.platform.target }}

0 commit comments

Comments
 (0)