Skip to content

Commit 2dd7793

Browse files
authored
Merge pull request #368 from pydata/cibuildwheel
Cibuildwheel
2 parents f9cd066 + 1545666 commit 2dd7793

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed

.github/workflows/build.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
CIBW_BEFORE_BUILD: pip install setuptools numpy
7+
# CIBW_BUILD_VERBOSITY: 1
8+
# CIBW_TEST_REQUIRES: pytest
9+
CIBW_TEST_COMMAND: python -c "import sys, numexpr; sys.exit(0 if numexpr.test().wasSuccessful() else 1)"
10+
11+
jobs:
12+
build_wheels:
13+
name: Build wheels on ${{ matrix.os }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-18.04, windows-latest, macos-latest]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- uses: actions/setup-python@v2
23+
name: Install Python
24+
with:
25+
python-version: '3.7'
26+
27+
- name: Install cibuildwheel
28+
run: |
29+
python -m pip install cibuildwheel==1.6.4
30+
31+
- name: Install Visual C++ for Python 2.7
32+
if: runner.os == 'Windows'
33+
run: |
34+
choco install vcpython27 -f -y
35+
36+
- name: Build wheels for CPython 2.7
37+
run: |
38+
python -m cibuildwheel --output-dir wheelhouse
39+
env:
40+
CIBW_BUILD: "cp27-*"
41+
42+
- name: Build wheels for CPython 3.5
43+
run: |
44+
python -m cibuildwheel --output-dir wheelhouse
45+
env:
46+
CIBW_BUILD: "cp35-*"
47+
48+
- name: Build wheels for CPython 3.6
49+
run: |
50+
python -m cibuildwheel --output-dir wheelhouse
51+
env:
52+
CIBW_BUILD: "cp36-*"
53+
54+
- name: Build wheels for CPython 3.7
55+
run: |
56+
python -m cibuildwheel --output-dir wheelhouse
57+
env:
58+
CIBW_BUILD: "cp37-*"
59+
60+
- name: Build wheels for CPython 3.8
61+
run: |
62+
python -m cibuildwheel --output-dir wheelhouse
63+
env:
64+
CIBW_BUILD: "cp38-*"
65+
66+
- name: Build wheels for CPython 3.9
67+
run: |
68+
python -m cibuildwheel --output-dir wheelhouse
69+
env:
70+
CIBW_BUILD: "cp39-*"
71+
72+
- uses: actions/upload-artifact@v2
73+
with:
74+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)