Skip to content

Commit d20ce8c

Browse files
committed
debug build wheels windows
1 parent b8c36c9 commit d20ce8c

File tree

1 file changed

+11
-33
lines changed

1 file changed

+11
-33
lines changed

.github/workflows/build_wheels.yml

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ on:
77

88

99
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]
1316

1417
steps:
1518
- uses: actions/checkout@v1
@@ -23,40 +26,15 @@ jobs:
2326
python -m pip install --upgrade pip
2427
pip install -r requirements.txt
2528
pip install -U "cython"
29+
2630
- name: Install cibuildwheel
2731
run: |
2832
python -m pip install cibuildwheel==1.3.0
2933
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')
5336
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
6038
6139
- name: Build wheel
6240
env:
@@ -67,4 +45,4 @@ jobs:
6745
- uses: actions/upload-artifact@v1
6846
with:
6947
name: wheels
70-
path: ./wheelhouse
48+
path: ./wheelhouse

0 commit comments

Comments
 (0)