Skip to content

Commit 6401d0a

Browse files
authored
workflows/CI: add riscv64 (#98)
* workflows/CI: make platforms more explicit Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> * workflows/CI: add riscv64 maturin supports the architecture for cross-compilation, so add it. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> --------- Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent c823841 commit 6401d0a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,26 @@ jobs:
6262
needs: test
6363
strategy:
6464
matrix:
65-
target: [x86_64, aarch64]
65+
platforms:
66+
- target: x86_64-unknown-linux-gnu
67+
arch: x86_64
68+
- target: aarch64-unknown-linux-gnu
69+
arch: aarch64
70+
- target: riscv64gc-unknown-linux-gnu
71+
arch: riscv64
6672
steps:
6773
- uses: actions/checkout@v4
6874
- name: Build wheels
6975
uses: PyO3/maturin-action@v1
7076
with:
71-
target: ${{ matrix.target }}
77+
target: ${{ matrix.platforms.target }}
7278
args: --release --out dist
7379
sccache: 'true'
7480
manylinux: auto
7581
- name: Upload wheels
7682
uses: actions/upload-artifact@v4
7783
with:
78-
name: wheels-linux-${{ matrix.target }}
84+
name: wheels-linux-${{ matrix.platforms.arch }}
7985
path: dist
8086

8187
windows:

0 commit comments

Comments
 (0)