11name : Build CI wheels
22
3- on : [push, tags]
3+ on :
4+ push :
5+ branches :
6+ - master
7+ - v[0-9]+.[0-9]+.x
8+ tags :
9+ - v*
410
511jobs :
612 build_wheels :
1218
1319 steps :
1420 - uses : actions/checkout@v2
21+ with :
22+ fetch-depth : 0
1523
1624 - uses : actions/setup-python@v2
1725 name : Install Python
@@ -22,17 +30,40 @@ jobs:
2230 run : |
2331 python -m pip install cibuildwheel==1.5.5
2432
25- - name : Build wheels
33+ - name : Build wheels for CPython
2634 run : |
27- python -m cibuildwheel --output-dir wheelhouse
35+ python -m cibuildwheel --output-dir dist
2836 env :
2937 CIBW_BUILD : " cp3?-*"
3038 CIBW_SKIP : " cp35-* cp36-*"
3139 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
3240 CIBW_MANYLINUX_I686_IMAGE : manylinux1
33- CIBW_MANYLINUX_PYPY_X86_64_IMAGE : manylinux1
41+ CIBW_BEFORE_BUILD : pip install numpy==1.15
42+
43+ - name : Build wheels for CPython 3.6
44+ run : |
45+ python -m cibuildwheel --output-dir dist
46+ env :
47+ CIBW_BUILD : " cp36-*"
48+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
49+ CIBW_MANYLINUX_I686_IMAGE : manylinux1
50+ CIBW_BEFORE_BUILD : pip install numpy==1.15
51+ if : >
52+ startsWith(github.ref, 'refs/heads/v3.3') ||
53+ startsWith(github.ref, 'refs/tags/v3.3')
54+
55+ - name : Build wheels for PyPy
56+ run : |
57+ python -m cibuildwheel --output-dir dist
58+ env :
59+ CIBW_BUILD : " pp3?-*"
60+ CIBW_BEFORE_BUILD : pip install numpy==1.15
61+ if : >
62+ runner.os != 'Windows' && (
63+ startsWith(github.ref, 'refs/heads/v3.3') ||
64+ startsWith(github.ref, 'refs/tags/v3.3') )
3465
3566 - uses : actions/upload-artifact@v2
3667 with :
3768 name : wheels
38- path : ./wheelhouse /*.whl
69+ path : ./dist /*.whl
0 commit comments