Skip to content

Commit 9c15f06

Browse files
authored
Build wheels on GitHub Actions
1 parent ffddf2e commit 9c15f06

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Wheels
2+
on: [push, pull_request]
3+
4+
jobs:
5+
wheels:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macos-latest]
10+
python_version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
name: Install Python ${{ matrix.python_version }}
16+
with:
17+
python-version: ${{ matrix.python_version }}
18+
19+
- name: Install cibuildwheel
20+
run: |
21+
python -m pip install cibuildwheel
22+
- name: Install Visual C++ for Python 2.7
23+
if: runner.os == 'Windows'
24+
run: |
25+
choco install vcpython27 -f -y
26+
- name: Build wheels
27+
run: |
28+
python -m cibuildwheel --output-dir wheelhouse
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)