Skip to content

Commit f59d75f

Browse files
committed
Try to build all linux wheels
1 parent 3a7b17d commit f59d75f

File tree

2 files changed

+85
-70
lines changed

2 files changed

+85
-70
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

.github/workflows/integration.yml

Lines changed: 85 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# TODO: https://github.com/joerick/cibuildwheel
12
name: integration
23

34
on: push
@@ -52,32 +53,80 @@ jobs:
5253
# pip install tox
5354
# tox -e py
5455

55-
build-linux-cp35:
56-
# needs: tests
56+
build-linux:
57+
strategy:
58+
matrix:
59+
config:
60+
- {container: manylinux1_i686, python: cp35-cp35m, toxenv: py35-cython, tag: cy35-1-x86}
61+
- {container: manylinux1_x86_64, python: cp35-cp35m, toxenv: py35-cython, tag: cy35-1-x64}
62+
- {container: manylinux2010_i686, python: cp35-cp35m, toxenv: py35-cython, tag: cy35-2010-x86}
63+
- {container: manylinux2010_x86_64, python: cp35-cp35m, toxenv: py35-cython, tag: cy35-2010-x64}
64+
- {container: manylinux2014_aarch64, python: cp35-cp35m, toxenv: py35-cython, tag: cy35-2014-aarch64}
65+
- {container: manylinux1_i686, python: cp36-cp36m, toxenv: py36-cython, tag: cy36-1-x86}
66+
- {container: manylinux1_x86_64, python: cp36-cp36m, toxenv: py36-cython, tag: cy36-1-x64}
67+
- {container: manylinux2010_i686, python: cp36-cp36m, toxenv: py36-cython, tag: cy36-2010-x86}
68+
- {container: manylinux2010_x86_64, python: cp36-cp36m, toxenv: py36-cython, tag: cy36-2010-x64}
69+
- {container: manylinux2014_aarch64, python: cp36-cp36m, toxenv: py36-cython, tag: cy36-2014-aarch64}
70+
- {container: manylinux1_i686, python: cp37-cp37m, toxenv: py37-cython, tag: cy37-1-x86}
71+
- {container: manylinux1_x86_64, python: cp37-cp37m, toxenv: py37-cython, tag: cy37-1-x64}
72+
- {container: manylinux2010_i686, python: cp37-cp37m, toxenv: py37-cython, tag: cy37-2010-x86}
73+
- {container: manylinux2010_x86_64, python: cp37-cp37m, toxenv: py37-cython, tag: cy37-2010-x64}
74+
- {container: manylinux2014_aarch64, python: cp37-cp37m, toxenv: py37-cython, tag: cy37-2014-aarch64}
75+
- {container: manylinux1_i686, python: cp38-cp38, toxenv: py38-cython, tag: cy38-1-x86}
76+
- {container: manylinux1_x86_64, python: cp38-cp38, toxenv: py38-cython, tag: cy38-1-x64}
77+
- {container: manylinux2010_i686, python: cp38-cp38, toxenv: py38-cython, tag: cy38-2010-x86}
78+
- {container: manylinux2010_x86_64, python: cp38-cp38, toxenv: py38-cython, tag: cy38-2010-x64}
79+
- {container: manylinux2014_aarch64, python: cp38-cp38, toxenv: py38-cython, tag: cy38-2014-aarch64}
5780
runs-on: ubuntu-latest
58-
container: quay.io/pypa/manylinux2014_x86_64
81+
container: ${{ matrix.config.container }}
5982

6083
steps:
6184
- uses: actions/checkout@v2
6285

6386
- name: Install Python package dependencies
64-
run: /opt/python/cp35-cp35m/bin/python -m pip install tox tox-wheel
87+
run: /opt/python/${{ matrix.config.python }}/bin/python -m pip install tox tox-wheel
6588

6689
- name: Build binary wheel
67-
run: /opt/python/cp35-cp35m/bin/python -m tox -e py35-cython --wheel
90+
run: /opt/python/${{ matrix.config.python }}/bin/python -m tox -e ${{ matrix.config.toxenv }} --wheel
6891

6992
- name: Apply auditwheel
7093
run: auditwheel repair -w .tox/dist .tox/dist/*
7194

7295
- name: Remove linux wheel
73-
run: rm .tox/dist/*-linux_x86_64.whl
96+
run: rm .tox/dist/*-linux_*.whl
7497

7598
- name: Archive dist artifacts
7699
uses: actions/upload-artifact@v2
77100
with:
78-
name: dist-linux-3.5
101+
name: dist-linux-${{ matrix.config.tag }}
79102
path: .tox/dist
80103

104+
# build-linux-cp35:
105+
# # needs: tests
106+
# runs-on: ubuntu-latest
107+
# container: quay.io/pypa/manylinux2014_x86_64
108+
109+
# steps:
110+
# - uses: actions/checkout@v2
111+
112+
# - name: Install Python package dependencies
113+
# run: /opt/python/cp35-cp35m/bin/python -m pip install tox tox-wheel
114+
115+
# - name: Build binary wheel
116+
# run: /opt/python/cp35-cp35m/bin/python -m tox -e py35-cython --wheel
117+
118+
# - name: Apply auditwheel
119+
# run: auditwheel repair -w .tox/dist .tox/dist/*
120+
121+
# - name: Remove linux wheel
122+
# run: rm .tox/dist/*-linux_x86_64.whl
123+
124+
# - name: Archive dist artifacts
125+
# uses: actions/upload-artifact@v2
126+
# with:
127+
# name: dist-linux-3.5
128+
# path: .tox/dist
129+
81130
# build-linux-cp36:
82131
# needs: tests
83132
# runs-on: ubuntu-latest
@@ -156,39 +205,41 @@ jobs:
156205
# name: dist-linux-3.8
157206
# path: dist
158207

159-
build-macos:
160-
# needs: tests
161-
runs-on: macos-latest
162-
strategy:
163-
max-parallel: 4
164-
matrix:
165-
config:
166-
- {python-version: 3.5, toxenv: py35-cython}
167-
- {python-version: 3.6, toxenv: py36-cython}
168-
- {python-version: 3.7, toxenv: py37-cython}
169-
- {python-version: 3.8, toxenv: py38-cython}
208+
# TODO: https://github.com/matthew-brett/delocate
209+
# build-macos:
210+
# # needs: tests
211+
# runs-on: macos-latest
212+
# strategy:
213+
# max-parallel: 4
214+
# matrix:
215+
# config:
216+
# - {python-version: 3.5, toxenv: py35-cython}
217+
# - {python-version: 3.6, toxenv: py36-cython}
218+
# - {python-version: 3.7, toxenv: py37-cython}
219+
# - {python-version: 3.8, toxenv: py38-cython}
170220

171-
steps:
172-
- uses: actions/checkout@v2
221+
# steps:
222+
# - uses: actions/checkout@v2
173223

174-
- name: Set up Python ${{ matrix.config.python-version }} x64
175-
uses: actions/setup-python@v2
176-
with:
177-
python-version: ${{ matrix.config.python-version }}
178-
architecture: x64
224+
# - name: Set up Python ${{ matrix.config.python-version }} x64
225+
# uses: actions/setup-python@v2
226+
# with:
227+
# python-version: ${{ matrix.config.python-version }}
228+
# architecture: x64
179229

180-
- name: Install Python package dependencies
181-
run: pip install tox tox-wheel
230+
# - name: Install Python package dependencies
231+
# run: pip install tox tox-wheel
182232

183-
- name: Build binary wheel
184-
run: python -m tox -e ${{ matrix.config.toxenv }} --wheel
233+
# - name: Build binary wheel
234+
# run: python -m tox -e ${{ matrix.config.toxenv }} --wheel
185235

186-
- name: Archive dist artifacts
187-
uses: actions/upload-artifact@v2
188-
with:
189-
name: dist-macos-${{ matrix.config.python-version }}
190-
path: .tox/dist
236+
# - name: Archive dist artifacts
237+
# uses: actions/upload-artifact@v2
238+
# with:
239+
# name: dist-macos-${{ matrix.config.python-version }}
240+
# path: .tox/dist
191241

242+
# TODO: Include x64 and x86 builds
192243
# build-windows:
193244
# needs: tests
194245
# runs-on: windows-latest

0 commit comments

Comments
 (0)