1
1
name : Build CI wheels
2
2
3
- on : [push, tags]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - v[0-9]+.[0-9]+.x
8
+ tags :
9
+ - v*
4
10
5
11
jobs :
6
12
build_wheels :
12
18
13
19
steps :
14
20
- uses : actions/checkout@v2
21
+ with :
22
+ fetch-depth : 0
15
23
16
24
- uses : actions/setup-python@v2
17
25
name : Install Python
@@ -22,17 +30,40 @@ jobs:
22
30
run : |
23
31
python -m pip install cibuildwheel==1.5.5
24
32
25
- - name : Build wheels
33
+ - name : Build wheels for CPython
26
34
run : |
27
- python -m cibuildwheel --output-dir wheelhouse
35
+ python -m cibuildwheel --output-dir dist
28
36
env :
29
37
CIBW_BUILD : " cp3?-*"
30
38
CIBW_SKIP : " cp35-* cp36-*"
31
39
CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
32
40
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') )
34
65
35
66
- uses : actions/upload-artifact@v2
36
67
with :
37
68
name : wheels
38
- path : ./wheelhouse /*.whl
69
+ path : ./dist /*.whl
0 commit comments