|
| 1 | +# TODO: https://github.com/joerick/cibuildwheel |
1 | 2 | name: integration |
2 | 3 |
|
3 | 4 | on: push |
@@ -52,32 +53,80 @@ jobs: |
52 | 53 | # pip install tox |
53 | 54 | # tox -e py |
54 | 55 |
|
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} |
57 | 80 | runs-on: ubuntu-latest |
58 | | - container: quay.io/pypa/manylinux2014_x86_64 |
| 81 | + container: ${{ matrix.config.container }} |
59 | 82 |
|
60 | 83 | steps: |
61 | 84 | - uses: actions/checkout@v2 |
62 | 85 |
|
63 | 86 | - 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 |
65 | 88 |
|
66 | 89 | - 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 |
68 | 91 |
|
69 | 92 | - name: Apply auditwheel |
70 | 93 | run: auditwheel repair -w .tox/dist .tox/dist/* |
71 | 94 |
|
72 | 95 | - name: Remove linux wheel |
73 | | - run: rm .tox/dist/*-linux_x86_64.whl |
| 96 | + run: rm .tox/dist/*-linux_*.whl |
74 | 97 |
|
75 | 98 | - name: Archive dist artifacts |
76 | 99 | uses: actions/upload-artifact@v2 |
77 | 100 | with: |
78 | | - name: dist-linux-3.5 |
| 101 | + name: dist-linux-${{ matrix.config.tag }} |
79 | 102 | path: .tox/dist |
80 | 103 |
|
| 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 | + |
81 | 130 | # build-linux-cp36: |
82 | 131 | # needs: tests |
83 | 132 | # runs-on: ubuntu-latest |
@@ -156,39 +205,41 @@ jobs: |
156 | 205 | # name: dist-linux-3.8 |
157 | 206 | # path: dist |
158 | 207 |
|
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} |
170 | 220 |
|
171 | | - steps: |
172 | | - - uses: actions/checkout@v2 |
| 221 | + # steps: |
| 222 | + # - uses: actions/checkout@v2 |
173 | 223 |
|
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 |
179 | 229 |
|
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 |
182 | 232 |
|
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 |
185 | 235 |
|
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 |
191 | 241 |
|
| 242 | + # TODO: Include x64 and x86 builds |
192 | 243 | # build-windows: |
193 | 244 | # needs: tests |
194 | 245 | # runs-on: windows-latest |
|
0 commit comments