Bypass GCC 12 bug. #41
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: manylinux_2_28 | |
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: | |
if: false | |
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 }} |