Skip to content

feat: add cibuildwheel configuration for automated wheel building (#92) #1

feat: add cibuildwheel configuration for automated wheel building (#92)

feat: add cibuildwheel configuration for automated wheel building (#92) #1

Workflow file for this run

name: Build Wheels
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: cp3{10,11,12}-*
CIBW_SKIP: "*-musllinux*"
# Temporarily disable tests during wheel building
# CIBW_TEST_REQUIRES: pytest
# CIBW_TEST_COMMAND: "pip install {wheel} && pytest {project}/tests"
CIBW_BUILD_VERBOSITY: 1
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}-${{ matrix.python-version }}
path: ./wheelhouse/*.whl