From a9b518ac4ee75323df0688a9ca4efc356142a700 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Tue, 24 Nov 2026 09:10:52 -0500 Subject: [PATCH 1/3] chore: make CI target matrix more explicit Distinguish between 'target' (the toolchain triple) and 'arch' (the platform shorthand) since the two are not always the same, e.g. for i686, ppc64le, and riscv64. Define values for Windows and Mac builds, but make them identical since this is the case for them. Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 4418306..77b6502 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -192,7 +192,7 @@ jobs: jobs: ${{ toJSON(needs) }} build: - name: build on ${{ matrix.os }} (${{ matrix.target }} - ${{ matrix.interpreter || 'all' }}${{ matrix.os == 'linux' && format(' - {0}', matrix.manylinux == 'auto' && 'manylinux' || matrix.manylinux) || '' }}) + name: build on ${{ matrix.os }} (${{ matrix.arch }} - ${{ matrix.interpreter || 'all' }}${{ matrix.os == 'linux' && format(' - {0}', matrix.manylinux == 'auto' && 'manylinux' || matrix.manylinux) || '' }}) permissions: contents: read if: success() @@ -201,63 +201,79 @@ jobs: matrix: os: [linux, macos, windows] target: [undefined] + arch: [undefined] manylinux: [auto] include: # manylinux for various platforms - os: linux manylinux: auto - target: x86_64 + target: x86_64-unknown-linux-gnu + arch: x86_64 - os: linux manylinux: auto - target: aarch64 + target: aarch64-unknown-linux-gnu + arch: aarch64 - os: linux manylinux: auto - target: i686 + target: i686-unknown-linux-gnu + arch: x86 - os: linux manylinux: auto - target: armv7 + target: armv7-unknown-linux-gnueabihf + arch: armv7 interpreter: 3.11 3.12 3.13 3.14 3.14t 3.15 3.15t - os: linux manylinux: auto - target: ppc64le + target: powerpc64le-unknown-linux-gnu + arch: ppc64le interpreter: 3.11 3.12 3.13 3.14 3.14t 3.15 3.15t - os: linux manylinux: auto - target: s390x + target: s390x-unknown-linux-gnu + arch: s390x interpreter: 3.11 3.12 3.13 3.14 3.14t 3.15 3.15t # musllinux - os: linux manylinux: musllinux_1_1 - target: x86_64 + target: x86_64-unknown-linux-musl + arch: x86_64 - os: linux manylinux: musllinux_1_1 - target: aarch64 + target: aarch64-unknown-linux-musl + arch: aarch64 - os: linux manylinux: musllinux_1_1 - target: armv7 + target: armv7-unknown-linux-musleabihf + arch: armv7 # macos - os: macos target: x86_64 + arch: x86_64 - os: macos target: aarch64 + arch: aarch64 # windows - os: windows target: x86_64 + arch: x86_64 interpreter: 3.11 3.12 3.13 3.14 3.14t 3.15 3.15t - os: windows target: i686 + arch: x86 interpreter: 3.11 3.12 3.13 3.14 3.15 - os: windows target: aarch64 + arch: aarch64 runs-on: windows-11-arm interpreter: 3.11 3.12 3.13 3.14 3.14t exclude: # was just a dummy variable to set a default value for target - target: undefined + - arch: undefined runs-on: ${{ matrix.runs-on || format('{0}-latest', (matrix.os == 'linux' && 'ubuntu') || matrix.os) }} steps: @@ -276,7 +292,7 @@ jobs: - run: pip install -U twine - name: build sdist - if: ${{ matrix.os == 'linux' && matrix.target == 'x86_64' && matrix.manylinux == 'auto' }} + if: ${{ matrix.os == 'linux' && matrix.arch == 'x86_64' && matrix.manylinux == 'auto' }} uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0 with: command: sdist @@ -297,7 +313,7 @@ jobs: - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - name: python_calamine_pypi_files_${{ matrix.os }}_${{ matrix.target }}_${{ matrix.manylinux || 'auto' }} + name: python_calamine_pypi_files_${{ matrix.os }}_${{ matrix.arch }}_${{ matrix.manylinux || 'auto' }} path: dist build-pyemscripten: From 3b08007f7142522145d3a0e99bf68d394f2fb695 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Tue, 24 Nov 2026 09:14:30 -0500 Subject: [PATCH 2/3] chore: bump musl builds to musllinux_1_2 musllinux_1_1 has been EOL since 2024: https://github.com/pypa/manylinux#musllinux_1_1-alpine-linux-312-based---eol Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 77b6502..ba457da 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -235,15 +235,15 @@ jobs: # musllinux - os: linux - manylinux: musllinux_1_1 + manylinux: musllinux_1_2 target: x86_64-unknown-linux-musl arch: x86_64 - os: linux - manylinux: musllinux_1_1 + manylinux: musllinux_1_2 target: aarch64-unknown-linux-musl arch: aarch64 - os: linux - manylinux: musllinux_1_1 + manylinux: musllinux_1_2 target: armv7-unknown-linux-musleabihf arch: armv7 From d158fc0e9fe0650ca94f5a3e9b297a50d4f791b5 Mon Sep 17 00:00:00 2001 From: Trevor Gamblin Date: Tue, 24 Nov 2026 09:13:57 -0500 Subject: [PATCH 3/3] feat: add riscv64 glibc, musl builds Signed-off-by: Trevor Gamblin --- .github/workflows/CI.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ba457da..f6d8053 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -232,6 +232,10 @@ jobs: target: s390x-unknown-linux-gnu arch: s390x interpreter: 3.11 3.12 3.13 3.14 3.14t 3.15 3.15t + - os: linux + manylinux: auto + target: riscv64gc-unknown-linux-gnu + arch: riscv64 # musllinux - os: linux @@ -246,6 +250,10 @@ jobs: manylinux: musllinux_1_2 target: armv7-unknown-linux-musleabihf arch: armv7 + - os: linux + manylinux: musllinux_1_2 + target: riscv64gc-unknown-linux-musl + arch: riscv64 # macos - os: macos