Skip to content

Build and release Python packages - MacOS + Windows #8

Build and release Python packages - MacOS + Windows

Build and release Python packages - MacOS + Windows #8

name: Build and release Python packages - MacOS + Windows
on: workflow_dispatch
jobs:
build:
strategy:
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
os: ['macos-10.15', 'windows-2019', 'macos-11', 'macos-12']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Python # Set Python version
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Install cmake
uses: jwlawson/[email protected]
- name: Build package & upload
run: |
pip install wheel twine setuptools
python setup.py bdist_wheel
- name: Publish package
run:
twine upload -u __token__ -p ${{ secrets.PYPI_UPLOAD_TOKEN }} dist/*