55
55
with :
56
56
python-version : ${{ env.PYTHON_VER }}
57
57
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
+
62
60
63
61
- name : Upload wheels
64
62
uses : actions/upload-artifact@v4
83
81
# (memcpy@GLIBC_2.14), so the wheels are not compatible with
84
82
# manylinux1_x86_64 environment. In order to be compatible as
85
83
# 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
88
86
if : github.event_name == 'push'
89
87
runs-on : ubuntu-latest
90
88
97
95
# manylinux_x_y >=20.3 3.8.10+, 3.9.5+, 3.10.0+ x.y
98
96
# manylinux2010 images EOL on 2022-08-01, it doesn't support cp311.
99
97
CIBW_BUILD : cp39-* cp310-*
100
- CIBW_MANYLINUX_X86_64_IMAGE : manylinux2010
98
+ CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
101
99
CIBW_ARCHS_LINUX : x86_64
102
100
103
101
steps :
@@ -106,11 +104,8 @@ jobs:
106
104
with :
107
105
python-version : ${{ env.PYTHON_VER }}
108
106
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
+
114
109
115
110
- name : Upload source distribution
116
111
uses : actions/upload-artifact@v4
@@ -121,7 +116,7 @@ jobs:
121
116
- name : Upload manylinux1_x86_64 wheels
122
117
uses : actions/upload-artifact@v4
123
118
with :
124
- name : regex-files-manylinux2010
119
+ name : regex-files-manylinux2014
125
120
path : wheelhouse/*.whl
126
121
127
122
# Build and upload aarch64/ppc64le/s390x wheels.
@@ -134,24 +129,23 @@ jobs:
134
129
matrix :
135
130
arch : [aarch64, ppc64le, s390x]
136
131
137
- env :
138
- CIBW_ARCHS : ${{ matrix.arch }}
139
- # Building in QEMU is very slow, so parallelize the tasks.
140
- CIBW_SKIP : " *musllinux* *manylinux*"
141
-
142
132
steps :
143
133
- uses : actions/checkout@v3
144
134
- uses : actions/setup-python@v4
145
135
with :
146
136
python-version : ${{ env.PYTHON_VER }}
147
137
148
138
- name : Set up QEMU
149
- uses : docker/setup-qemu-action@v2
139
+ uses : docker/setup-qemu-action@v3
140
+ with :
141
+ platforms : all
150
142
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*"
155
149
156
150
- name : Upload ${{ matrix.arch }} wheels
157
151
uses : actions/upload-artifact@v4
@@ -162,7 +156,7 @@ jobs:
162
156
# Upload to PyPI
163
157
upload_pypi :
164
158
name : Publish to PyPI
165
- needs : [build_wheels, build_in_manylinux2010 , build_arch_wheels]
159
+ needs : [build_wheels, build_in_manylinux2014 , build_arch_wheels]
166
160
runs-on : ubuntu-latest
167
161
168
162
steps :
0 commit comments