Skip to content

Build Python release #14

Build Python release

Build Python release #14

Workflow file for this run

# Builds Python wheels and create a draft release
name: Build Python release
on: [workflow_dispatch]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_BEFORE_BUILD_LINUX: "python3 -m pip install cmake"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_BUILD: "cp310-macosx_x86_64 cp310-macosx_arm64 cp310-win_amd64 cp310-manylinux_x86_64 cp310-manylinux_aarch64 cp311-macosx_x86_64 cp311-macosx_arm64 cp311-win_amd64 cp311-manylinux_x86_64 cp311-manylinux_aarch64"
- name: Deploy
uses: softprops/action-gh-release@v1
with:
tag_name: Draft
name: Draft
draft: true
files: |
./wheelhouse/*.whl
env:
GITHUB_TOKEN: ${{ secrets.deploy }}