From 7f99ea8cd88bc6698a93b30702b751bd27698374 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Tue, 3 Dec 2024 09:22:27 +0100 Subject: [PATCH] ci: separate free-threaded and standard 3.13 distribution builds --- .github/workflows/CI.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5a7f65a..b0e5dc6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -161,7 +161,6 @@ jobs: 3.11 3.12 3.13 - 3.13t ${{ matrix.target == 'x64' && 'pypy3.9' || '' }} ${{ matrix.target == 'x64' && 'pypy3.10' || '' }} allow-prereleases: true @@ -170,7 +169,7 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - args: --release --out dist --interpreter '3.9 3.10 3.11 3.12 3.13 3.13t' --interpreter ${{ matrix.target == 'x64' && 'pypy3.9 pypy3.10' || '' }} + args: --release --out dist --interpreter '3.9 3.10 3.11 3.12 3.13' --interpreter ${{ matrix.target == 'x64' && 'pypy3.9 pypy3.10' || '' }} sccache: "true" - name: Upload wheels uses: actions/upload-artifact@v4 @@ -178,6 +177,33 @@ jobs: name: dist-${{ github.job }}-${{ matrix.target }} path: dist + windows-free-threaded: + needs: test + runs-on: windows-latest + strategy: + matrix: + target: [x64, x86] # x86 is not supported by pypy + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + - uses: quansight-labs/setup-python@v5 + with: + python-version: 3.13t + allow-prereleases: true + architecture: ${{ matrix.target }} + - name: Build wheels + uses: PyO3/maturin-action@v1 + with: + target: ${{ matrix.target }} + args: --release --out dist --interpreter '3.13t' + sccache: "true" + - name: Upload wheels + uses: actions/upload-artifact@v4 + with: + name: dist-${{ github.job }}-${{ matrix.target }}-free-threaded + path: dist + macos: needs: test runs-on: macos-latest @@ -234,7 +260,7 @@ jobs: path: dist release: - needs: [manylinux, musllinux, windows, macos] + needs: [manylinux, musllinux, windows, windows-free-threaded, macos] runs-on: ubuntu-latest if: "startsWith(github.ref, 'refs/tags/')" environment: