Skip to content

Build Wheels

Build Wheels #653

Workflow file for this run

name: Build Wheels
# Trigger the workflow on push to master. (this is equal to: PR is merged)
on:
push:
branches:
- master
pull_request_review:
types: [ submitted ]
# Building wheels on Ubuntu and Windows systems
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019]
steps:
- uses: actions/checkout@v3
# Used to host cibuildwheel
- uses: actions/setup-python@v4
- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel==2.13.1
- name: Install libomp
if: runner.os == 'macOS'
run: brew install libomp
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_SKIP: "cp27-* cp33-* cp34-* cp35-* cp36-* cp37-* pp*"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
CIBW_ARCHS: "auto64"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl