From d1844e575bbba2f69bb682754fa4516292229998 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Thu, 3 Sep 2026 15:13:28 -0400 Subject: [PATCH 1/3] workflows: CI: use setup-uv instead of setup-python setup-uv supports more architectures (e.g. riscv64) than setup-python and is generally faster, so use it for Linux jobs. Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4977b3d..ef492ab 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -70,8 +70,9 @@ jobs: with: persist-credentials: false - - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 with: + activate-environment: true python-version: "3.x" - uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 @@ -106,8 +107,9 @@ jobs: with: persist-credentials: false - - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 with: + activate-environment: true python-version: "3.x" - uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 From 3feb71a3ba0bf3a1b1cd9b3b3134984038efa666 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Thu, 3 Sep 2026 15:20:13 -0400 Subject: [PATCH 2/3] workflows: CI: make rustc targets more explicit For Linux builds, distinguish between 'target' and 'arch', since the two are not always the same (e.g. the target for ppc64le is actually powerpc64le-unknown-linux-gnu). This allows more explicit support for other platforms when needed. Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ef492ab..df73a8d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -58,12 +58,12 @@ jobs: strategy: matrix: platform: - - { target: x86_64, interpreter: *interpreters } - - { target: x86, interpreter: *interpreters } - - { target: aarch64, interpreter: *interpreters } - - { target: armv7, interpreter: *interpreters } - - { target: s390x, interpreter: *interpreters } - - { target: ppc64le, interpreter: *interpreters } + - { target: x86_64-unknown-linux-gnu, arch: x86_64, interpreter: *interpreters } + - { target: i686-unknown-linux-gnu, arch: x86, interpreter: *interpreters } + - { target: aarch64-unknown-linux-gnu, arch: aarch64, interpreter: *interpreters } + - { target: armv7-unknown-linux-gnueabihf, arch: armv7, interpreter: *interpreters } + - { target: s390x-unknown-linux-gnu, arch: s390x, interpreter: *interpreters } + - { target: powerpc64le-unknown-linux-gnu, arch: ppc64le, interpreter: *interpreters } steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -89,7 +89,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: wheels-linux-${{ matrix.platform.target }} + name: wheels-linux-${{ matrix.platform.arch }} path: dist build-musllinux: @@ -97,10 +97,10 @@ jobs: strategy: matrix: platform: - - { target: x86_64, interpreter: *interpreters } - - { target: x86, interpreter: *interpreters } - - { target: aarch64, interpreter: *interpreters } - - { target: armv7, interpreter: *interpreters } + - { target: x86_64-unknown-linux-musl, arch: x86_64, interpreter: *interpreters } + - { target: i686-unknown-linux-musl, arch: x86, interpreter: *interpreters } + - { target: aarch64-unknown-linux-musl, arch: aarch64, interpreter: *interpreters } + - { target: armv7-unknown-linux-musleabihf, arch: armv7, interpreter: *interpreters } steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -126,7 +126,7 @@ jobs: - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: wheels-musllinux-${{ matrix.platform.target }} + name: wheels-musllinux-${{ matrix.platform.arch }} path: dist build-windows: From 640339377d9b8e2323ae1f6266bfbef1471a3073 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Thu, 3 Sep 2026 15:23:03 -0400 Subject: [PATCH 3/3] workflows: CI: add riscv64 build Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index df73a8d..bef285d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -64,6 +64,7 @@ jobs: - { target: armv7-unknown-linux-gnueabihf, arch: armv7, interpreter: *interpreters } - { target: s390x-unknown-linux-gnu, arch: s390x, interpreter: *interpreters } - { target: powerpc64le-unknown-linux-gnu, arch: ppc64le, interpreter: *interpreters } + - { target: riscv64gc-unknown-linux-gnu, arch: riscv64, interpreter: *interpreters } steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -101,6 +102,7 @@ jobs: - { target: i686-unknown-linux-musl, arch: x86, interpreter: *interpreters } - { target: aarch64-unknown-linux-musl, arch: aarch64, interpreter: *interpreters } - { target: armv7-unknown-linux-musleabihf, arch: armv7, interpreter: *interpreters } + - { target: riscv64gc-unknown-linux-musl, arch: riscv64, interpreter: *interpreters } steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1