From 87ef7982949c6e8505338036b868871c940f30ce Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Wed, 18 Feb 2026 15:59:05 -0500 Subject: [PATCH 1/2] workflows: CI: fully specify linux toolchain targets Specify the exact rustc target to be used by maturin, so that it is clear which target is used for a given arch. Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9ac6602..6019a64 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -42,15 +42,20 @@ jobs: matrix: platform: - runner: ubuntu-22.04 - target: x86_64 + target: x86_64-unknown-linux-gnu + arch: x86_64 - runner: ubuntu-22.04 - target: x86 + target: i686-unknown-linux-gnu + arch: x86 - runner: ubuntu-22.04 - target: aarch64 + target: aarch64-unknown-linux-gnu + arch: aarch64 - runner: ubuntu-22.04 - target: armv7 + target: armv7-unknown-linux-gnueabihf + arch: armv7 - runner: ubuntu-22.04 - target: ppc64le + target: powerpc64le-unknown-linux-gnu + arch: ppc64le steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 @@ -70,7 +75,7 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} uses: actions/upload-artifact@v4 with: - name: wheels-linux-${{ matrix.platform.target }} + name: wheels-linux-${{ matrix.platform.arch }} path: dist musllinux: From f13e780d46012bc2895f283c71bfab69f10ca56e Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Wed, 18 Feb 2026 16:00:14 -0500 Subject: [PATCH 2/2] workflows/CI: add riscv64 maturin supports riscv64 (specifically, riscv64gc) as a target. Add that to the build matrix. Note that this inspires the previous commit to make things more explicit, as 'riscv64' is not a valid shorthand for the rustc target, but it is used in package names when uploaded to PyPI. Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6019a64..29952ff 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -56,6 +56,9 @@ jobs: - runner: ubuntu-22.04 target: powerpc64le-unknown-linux-gnu arch: ppc64le + - runner: ubuntu-22.04 + target: riscv64gc-unknown-linux-gnu + arch: riscv64 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5