Skip to content

Add macos-14 images to GitHub actions. (#23) #23

Add macos-14 images to GitHub actions. (#23)

Add macos-14 images to GitHub actions. (#23) #23

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: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
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: 10.15
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 }}