blob: bb853f5f1c3ffad558fdb68c214920069930c25f [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Build wheels
on:
push:
branches:
- master
- 'pyignite-*'
tags:
- '*.rc[0-9]+'
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, windows-2019, macos-12 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.11.2
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_SKIP: "pp* cp36* *-win32 *-manylinux_i686"
- name: Build source distribution
if: ${{ matrix.os == 'ubuntu-20.04' }}
run:
python setup.py sdist --formats=zip --dist-dir ./wheelhouse
- uses: actions/upload-artifact@v3
with:
path: |
./wheelhouse/*.whl
./wheelhouse/*.zip