update version in pyproject.toml #103
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: Build wheels | |
on: [push, pull_request] | |
jobs: | |
unix: | |
name: ${{ matrix.os }} | ${{ matrix.arch }} | ${{ matrix.python }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# macos-13 is an intel runner, macos-14 is apple silicon | |
os: [ubuntu-latest, macos-13, macos-14] | |
arch: [auto, aarch64] | |
python: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*, cp312-*, cp313-*] | |
include: | |
- os: macos-13 | |
macos_deployment_target: 13 | |
- os: macos-14 | |
macos_deployment_target: 14 | |
exclude: | |
- os: macos-13 | |
arch: aarch64 | |
- os: macos-13 | |
python: cp37-* | |
- os: macos-13 | |
python: cp310-* | |
- os: macos-14 | |
arch: aarch64 | |
- os: macos-14 | |
python: cp37-* | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
if: runner.os == 'Linux' | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: all | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos_deployment_target }} | |
CIBW_ARCHS: ${{ matrix.arch }} | |
CIBW_BUILD: ${{ matrix.python }} | |
CIBW_TEST_REQUIRES: pytest | |
CIBW_TEST_COMMAND: "pytest {project}" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
path: ./wheelhouse/*.whl | |
windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: mingw64 | |
update: false | |
install: >- | |
git | |
make | |
pacboy: >- | |
toolchain:p | |
cmake:p | |
glib2:p | |
python-pip:p | |
- name: Build wheel | |
run: pip3 wheel -v . | |
- name: Test wheel | |
run: | | |
pip3 install lcm*.whl --break-system-packages | |
python test/python/test_python_module.py | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows-wheel | |
path: '*.whl' |