5555 with :
5656 python-version : ${{ env.PYTHON_VER }}
5757
58- - name : Install cibuildwheel & build wheels
59- run : |
60- python -m pip install -U cibuildwheel
61- python -m cibuildwheel --output-dir wheelhouse
58+ - name : Build wheels
59+ 6260
6361 - name : Upload wheels
6462 uses : actions/upload-artifact@v4
8381 # (memcpy@GLIBC_2.14), so the wheels are not compatible with
8482 # manylinux1_x86_64 environment. In order to be compatible as
8583 # much as possible, this job builds manylinux1_x86_64 wheels.
86- build_in_manylinux2010 :
87- name : Build in manylinux2010 environment
84+ build_in_manylinux2014 :
85+ name : Build in manylinux2014 environment
8886 if : github.event_name == 'push'
8987 runs-on : ubuntu-latest
9088
9795 # manylinux_x_y >=20.3 3.8.10+, 3.9.5+, 3.10.0+ x.y
9896 # manylinux2010 images EOL on 2022-08-01, it doesn't support cp311.
9997 CIBW_BUILD : cp39-* cp310-*
100- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2010
98+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
10199 CIBW_ARCHS_LINUX : x86_64
102100
103101 steps :
@@ -106,11 +104,8 @@ jobs:
106104 with :
107105 python-version : ${{ env.PYTHON_VER }}
108106
109- - name : Build source distribution & wheels
110- run : |
111- python setup.py sdist --formats=gztar
112- python -m pip install -U cibuildwheel
113- python -m cibuildwheel --output-dir wheelhouse
107+ - name : Build wheels
108+ 114109
115110 - name : Upload source distribution
116111 uses : actions/upload-artifact@v4
@@ -121,7 +116,7 @@ jobs:
121116 - name : Upload manylinux1_x86_64 wheels
122117 uses : actions/upload-artifact@v4
123118 with :
124- name : regex-files-manylinux2010
119+ name : regex-files-manylinux2014
125120 path : wheelhouse/*.whl
126121
127122 # Build and upload aarch64/ppc64le/s390x wheels.
@@ -134,24 +129,23 @@ jobs:
134129 matrix :
135130 arch : [aarch64, ppc64le, s390x]
136131
137- env :
138- CIBW_ARCHS : ${{ matrix.arch }}
139- # Building in QEMU is very slow, so parallelize the tasks.
140- CIBW_SKIP : " *musllinux* *manylinux*"
141-
142132 steps :
143133 - uses : actions/checkout@v3
144134 - uses : actions/setup-python@v4
145135 with :
146136 python-version : ${{ env.PYTHON_VER }}
147137
148138 - name : Set up QEMU
149- uses : docker/setup-qemu-action@v2
139+ uses : docker/setup-qemu-action@v3
140+ with :
141+ platforms : all
150142
151- - name : Install cibuildwheel & build wheels
152- run : |
153- python -m pip install -U cibuildwheel
154- python -m cibuildwheel --output-dir wheelhouse
143+ - name : Build wheels
144+ 145+ with :
146+ CIBW_ARCHS_LINUX : ${{ matrix.arch }}
147+ # Building in QEMU is very slow, so parallelize the tasks.
148+ CIBW_SKIP : " *musllinux* *manylinux*"
155149
156150 - name : Upload ${{ matrix.arch }} wheels
157151 uses : actions/upload-artifact@v4
@@ -162,7 +156,7 @@ jobs:
162156 # Upload to PyPI
163157 upload_pypi :
164158 name : Publish to PyPI
165- needs : [build_wheels, build_in_manylinux2010 , build_arch_wheels]
159+ needs : [build_wheels, build_in_manylinux2014 , build_arch_wheels]
166160 runs-on : ubuntu-latest
167161
168162 steps :
0 commit comments