Skip to content

Fix free-threading wheels #22

Fix free-threading wheels

Fix free-threading wheels #22

Workflow file for this run

name: Build Wheels
on: [workflow_dispatch, workflow_call, push, pull_request]
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
fail-fast: false
matrix:
os: [macos-14]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
name: Setup msys2
with:
install: >-
mingw-w64-ucrt-x86_64-gcc
autotools
msystem: ucrt64
path-type: inherit
if: ${{ matrix.os == 'windows-2022' }}
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ENABLE: pypy cpython-prerelease cpython-freethreading
CIBW_BUILD: cp313t-*
CIBW_SKIP: pp38* pp39* *-win32 *-manylinux_i686 *-musllinux_*
CIBW_BEFORE_ALL: bash scripts/cibw_before_all.sh
CIBW_BEFORE_ALL_WINDOWS: msys2 -c scripts/cibw_before_all.sh
CIBW_BEFORE_BUILD_WINDOWS: pip install wheel delvewheel
CIBW_TEST_EXTRAS: tests
CIBW_TEST_COMMAND: pytest {package}/tests/
CIBW_REPAIR_WHEEL_COMMAND: >
bash scripts/cibw_repair_wheel_command.sh {dest_dir} {wheel}
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: >
scripts\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/
merge:
runs-on: ubuntu-22.04
needs: build_wheels
steps:
- name: Merge Wheels
uses: actions/upload-artifact/merge@v4
with:
name: python-gmp-wheels
pattern: wheels-*
delete-merged: true