Skip to content

Commit c60cb3b

Browse files
committed
add wheel build action
1 parent 5f67924 commit c60cb3b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build_wheels.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build dist and wheels
2+
3+
on:
4+
push:
5+
branches:
6+
- 'build_wheels'
7+
8+
9+
jobs:
10+
build_linux:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
max-parallel: 4
15+
matrix:
16+
python-version: [3.5, 3.6, 3.7, 3.8]
17+
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -r requirements.txt
29+
30+
- name: Install cibuildwheel
31+
run: |
32+
python -m pip install cibuildwheel==1.3.0
33+
34+
- name: Build wheel
35+
run: |
36+
python -m cibuildwheel --output-dir wheelhouse
37+
38+
- uses: actions/upload-artifact@v1
39+
with:
40+
name: wheels
41+
path: ./wheelhouse

0 commit comments

Comments
 (0)