Skip to content

Try to fix Python wheels. (#43) #34

Try to fix Python wheels. (#43)

Try to fix Python wheels. (#43) #34

Workflow file for this run

name: Python wheel
on:
push:
tags:
- '*'
jobs:
build_wheel:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-13, macos-14, windows-2022]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode version
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto64
CIBW_ARCHS_WINDOWS: auto64
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_SKIP: "*-musllinux* pp*"
CIBW_TEST_COMMAND: "pytest {project}/modules"
CIBW_TEST_REQUIRES: pytest
MACOSX_DEPLOYMENT_TARGET: 11.00
CIBW_BUILD_VERBOSITY: 2
- uses: actions/upload-artifact@v4
with:
name: wheels-${{matrix.os}}
path: ./wheelhouse/*.whl
upload_pypi:
name: Upload wheels to PyPI
runs-on: ubuntu-latest
needs: [build_wheel]
steps:
- uses: actions/download-artifact@v4
with:
pattern: wheels-*
merge-multiple: true
path: dist
- name: Deploy wheel
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}