7
7
8
8
9
9
jobs :
10
- build_linux :
11
-
12
- runs-on : ubuntu-latest
10
+ build_wheels :
11
+ name : Build wheel on ${{ matrix.os }}
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ matrix :
15
+ os : [ubuntu-18.04, windows-latest, macos-latest]
13
16
14
17
steps :
15
18
- uses : actions/checkout@v1
@@ -23,40 +26,15 @@ jobs:
23
26
python -m pip install --upgrade pip
24
27
pip install -r requirements.txt
25
28
pip install -U "cython"
29
+
26
30
- name : Install cibuildwheel
27
31
run : |
28
32
python -m pip install cibuildwheel==1.3.0
29
33
30
- - name : Build wheel
31
- env :
32
- CIBW_BEFORE_BUILD : " pip install numpy cython"
33
- run : |
34
- python -m cibuildwheel --output-dir wheelhouse
35
-
36
- - uses : actions/upload-artifact@v1
37
- with :
38
- name : wheels
39
- path : ./wheelhouse
40
-
41
- build_windows :
42
-
43
- runs-on : windows-2019
44
-
45
- steps :
46
- - uses : actions/checkout@v1
47
- - name : Set up Python 3.8
48
- uses : actions/setup-python@v1
49
- with :
50
- python-version : 3.8
51
-
52
- - name : Install dependencies
34
+ - name : Install Visual C++ for Python 2.7
35
+ if : startsWith(matrix.os, 'windows')
53
36
run : |
54
- python -m pip install --upgrade pip
55
- pip install -r requirements.txt
56
- pip install -U "cython"
57
- - name : Install cibuildwheel
58
- run : |
59
- python -m pip install cibuildwheel==1.3.0
37
+ choco install vcpython27 -f -y
60
38
61
39
- name : Build wheel
62
40
env :
67
45
- uses : actions/upload-artifact@v1
68
46
with :
69
47
name : wheels
70
- path : ./wheelhouse
48
+ path : ./wheelhouse
0 commit comments