Skip to content

Commit 023dc23

Browse files
authored
Create workflow to build manylinux wheel (#3)
Update build_wheels.yml
1 parent 9eef175 commit 023dc23

File tree

1 file changed

+31
-5
lines changed

1 file changed

+31
-5
lines changed

.github/workflows/build_wheels.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ jobs:
1010
runs-on: ${{ matrix.config.os }}
1111

1212
strategy:
13-
fail-fast: false
13+
fail-fast: true
1414
matrix:
1515
config:
1616
- name: "Windows Latest"
17-
os: windows-latest
18-
- name: "Ubuntu Latest"
19-
os: ubuntu-latest
17+
os: windows-latest
2018
- name: "MacOS Latest"
2119
os: macos-latest
2220

@@ -31,5 +29,33 @@ jobs:
3129

3230
- uses: actions/upload-artifact@v3
3331
with:
34-
name: wheel
32+
name: wheels
3533
path: dist/
34+
35+
build-manylinux:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Set up Python
40+
uses: actions/setup-python@v1
41+
with:
42+
python-version: 3.8
43+
- name: Install dependencies
44+
run: |
45+
python -m pip install --upgrade pip
46+
pip install twine flake8
47+
- name: Lint with flake8 for syntax errors
48+
run: |
49+
pip install flake8
50+
flake8 gomea/ --count --select=E9,F63,F7,F82 --show-source --statistics
51+
flake8 gomea/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
52+
- name: Build manylinux Python wheels
53+
uses: RalfG/python-wheels-manylinux-build@v0.7.1-manylinux2014_x86_64
54+
with:
55+
python-versions: 'cp310-cp310 cp311-cp311'
56+
build-requirements: 'cython numpy'
57+
- uses: actions/upload-artifact@v3
58+
with:
59+
name: wheel-manylinux
60+
path: dist/
61+

0 commit comments

Comments
 (0)