Add build wheels

This commit is contained in:
alessandro.molina 2022-04-09 12:10:58 -04:00
parent 6f22c71c04
commit d01320560d
1 changed files with 34 additions and 0 deletions

34
.github/workflows/build-wheels.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Build Wheels
on:
push:
# Pattern matched against refs/tags
tags:
- '*'
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-10.15]
steps:
- uses: actions/checkout@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.4.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl