Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport PR #18233 on branch v3.3.x (Fix cibuildwheel trigger condition.) #18239

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 36 additions & 5 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build CI wheels

on: [push, tags]
on:
push:
branches:
- master
- v[0-9]+.[0-9]+.x
tags:
- v*

jobs:
build_wheels:
Expand All @@ -12,6 +18,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: actions/setup-python@v2
name: Install Python
Expand All @@ -22,17 +30,40 @@ jobs:
run: |
python -m pip install cibuildwheel==1.5.5

- name: Build wheels
- name: Build wheels for CPython
run: |
python -m cibuildwheel --output-dir wheelhouse
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp3?-*"
CIBW_SKIP: "cp35-* cp36-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_MANYLINUX_I686_IMAGE: manylinux1
CIBW_MANYLINUX_PYPY_X86_64_IMAGE: manylinux1
CIBW_BEFORE_BUILD: pip install numpy==1.15

- name: Build wheels for CPython 3.6
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp36-*"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
CIBW_MANYLINUX_I686_IMAGE: manylinux1
CIBW_BEFORE_BUILD: pip install numpy==1.15
if: >
startsWith(github.ref, 'refs/heads/v3.3') ||
startsWith(github.ref, 'refs/tags/v3.3')

- name: Build wheels for PyPy
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "pp3?-*"
CIBW_BEFORE_BUILD: pip install numpy==1.15
if: >
runner.os != 'Windows' && (
startsWith(github.ref, 'refs/heads/v3.3') ||
startsWith(github.ref, 'refs/tags/v3.3') )

- uses: actions/upload-artifact@v2
with:
name: wheels
path: ./wheelhouse/*.whl
path: ./dist/*.whl