4
4
name : Publish
5
5
6
6
on :
7
+ push :
8
+ branches : [ "update-actions" ]
7
9
release :
8
10
types : [created]
9
11
workflow_dispatch : {}
12
14
package-source :
13
15
runs-on : ubuntu-latest
14
16
steps :
15
- - uses : actions/checkout@v2
16
- - uses : actions/setup-python@v2
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-python@v5
17
19
with :
18
20
python-version : " 3.9"
19
21
- name : Prepare C files to include
25
27
- name : Build source package
26
28
run : python -m build --sdist
27
29
- name : Upload source package
28
- uses : actions/upload-artifact@v2
30
+ uses : actions/upload-artifact@v4
29
31
with :
30
- name : dist
32
+ name : dist-source
31
33
path : dist/
32
34
33
35
package-wheel :
@@ -49,17 +51,17 @@ jobs:
49
51
- os : windows-latest
50
52
arch : amd64
51
53
steps :
52
- - uses : actions/checkout@v2
53
- - uses : actions/setup-python@v2
54
+ - uses : actions/checkout@v4
55
+ - uses : actions/setup-python@v5
54
56
with :
55
57
python-version : " 3.9"
56
58
- name : Set up QEMU
57
59
if : ${{ matrix.arch == 'aarch64' }}
58
- uses : docker/setup-qemu-action@v1
60
+ uses : docker/setup-qemu-action@v3
59
61
- name : Build wheels
60
62
env :
61
63
CIBW_ARCHS_LINUX : ${{matrix.arch}}
62
- CIBW_BUILD : cp38-* cp39-* cp310-* cp311-* cp312-*
64
+ CIBW_BUILD : cp39-* cp310-* cp311-* cp312-* cp313 -*
63
65
CIBW_SKIP : ' *-musllinux*'
64
66
CIBW_BEFORE_BUILD_LINUX : pip install -r requirements-cython.txt && yum install -y zlib-devel
65
67
# On windows and mac we should have z library preinstalled
71
73
cibuildwheel --output-dir dist
72
74
shell : bash
73
75
- name : Upload wheels
74
- uses : actions/upload-artifact@v2
76
+ uses : actions/upload-artifact@v4
75
77
with :
76
- name : dist
78
+ name : dist-${{ matrix.os }}-${{ matrix.arch }}
77
79
path : dist/
78
80
79
81
test-wheels-windows :
@@ -96,14 +98,14 @@ jobs:
96
98
aiokafka_whl : dist/aiokafka-*-cp313-cp313-win_amd64.whl
97
99
98
100
steps :
99
- - uses : actions/checkout@v2
101
+ - uses : actions/checkout@v4
100
102
- name : Download distributions
101
- uses : actions/download-artifact@v2
103
+ uses : actions/download-artifact@v4
102
104
with :
103
- name : dist
105
+ name : dist-windows-latest-amd64
104
106
path : dist/
105
107
- name : Set up Python
106
- uses : actions/setup-python@v2
108
+ uses : actions/setup-python@v5
107
109
with :
108
110
python-version : ${{ matrix.python }}
109
111
@@ -141,14 +143,14 @@ jobs:
141
143
aiokafka_whl : dist/aiokafka-*-cp313-cp313-macosx_*_x86_64.whl
142
144
143
145
steps :
144
- - uses : actions/checkout@v2
146
+ - uses : actions/checkout@v4
145
147
- name : Download distributions
146
- uses : actions/download-artifact@v2
148
+ uses : actions/download-artifact@v4
147
149
with :
148
- name : dist
150
+ name : dist-macos-13-x86_64
149
151
path : dist/
150
152
- name : Set up Python
151
- uses : actions/setup-python@v2
153
+ uses : actions/setup-python@v5
152
154
with :
153
155
python-version : ${{ matrix.python }}
154
156
@@ -184,14 +186,14 @@ jobs:
184
186
aiokafka_whl : dist/aiokafka-*-cp313-cp313-macosx_*_arm64.whl
185
187
186
188
steps :
187
- - uses : actions/checkout@v2
189
+ - uses : actions/checkout@v4
188
190
- name : Download distributions
189
- uses : actions/download-artifact@v2
191
+ uses : actions/download-artifact@v4
190
192
with :
191
- name : dist
193
+ name : dist-macos-latest-arm64
192
194
path : dist/
193
195
- name : Set up Python
194
- uses : actions/setup-python@v2
196
+ uses : actions/setup-python@v5
195
197
with :
196
198
python-version : ${{ matrix.python }}
197
199
@@ -227,14 +229,14 @@ jobs:
227
229
aiokafka_whl : dist/aiokafka-*-cp313-cp313-manylinux*_x86_64.whl
228
230
229
231
steps :
230
- - uses : actions/checkout@v2
232
+ - uses : actions/checkout@v4
231
233
- name : Download distributions
232
- uses : actions/download-artifact@v2
234
+ uses : actions/download-artifact@v4
233
235
with :
234
- name : dist
236
+ name : dist-ubuntu-latest-x86_64
235
237
path : dist/
236
238
- name : Set up Python
237
- uses : actions/setup-python@v2
239
+ uses : actions/setup-python@v5
238
240
with :
239
241
python-version : ${{ matrix.python }}
240
242
@@ -264,8 +266,6 @@ jobs:
264
266
strategy :
265
267
matrix :
266
268
include :
267
- - pyver : cp38-cp38
268
- aiokafka_whl : dist/aiokafka-*-cp38-cp38-manylinux*_aarch64.whl
269
269
- pyver : cp39-cp39
270
270
aiokafka_whl : dist/aiokafka-*-cp39-cp39-manylinux*_aarch64.whl
271
271
- pyver : cp310-cp310
@@ -274,16 +274,18 @@ jobs:
274
274
aiokafka_whl : dist/aiokafka-*-cp311-cp311-manylinux*_aarch64.whl
275
275
- pyver : cp312-cp312
276
276
aiokafka_whl : dist/aiokafka-*-cp312-cp312-manylinux*_aarch64.whl
277
+ - pyver : cp313-cp313
278
+ aiokafka_whl : dist/aiokafka-*-cp313-cp313-manylinux*_aarch64.whl
277
279
278
280
steps :
279
- - uses : actions/checkout@v2
281
+ - uses : actions/checkout@v4
280
282
- name : Set up QEMU
281
283
id : qemu
282
- uses : docker/setup-qemu-action@v1
284
+ uses : docker/setup-qemu-action@v3
283
285
- name : Download distributions
284
- uses : actions/download-artifact@v2
286
+ uses : actions/download-artifact@v4
285
287
with :
286
- name : dist
288
+ name : dist-ubuntu-latest-aarch64
287
289
path : dist/
288
290
- name : Test Wheel
289
291
run : |
@@ -320,11 +322,12 @@ jobs:
320
322
https://pypi.org/project/aiokafka/${{ github.ref_name }}
321
323
322
324
steps :
323
- - uses : actions/checkout@v2
325
+ - uses : actions/checkout@v4
324
326
- name : Download distributions
325
- uses : actions/download-artifact@v2
327
+ uses : actions/download-artifact@v4
326
328
with :
327
- name : dist
328
329
path : dist/
329
- - name : Publish to PyPI
330
- uses : pypa/gh-action-pypi-publish@release/v1
330
+ pattern : dist-*
331
+ merge-multiple : true
332
+ # - name: Publish to PyPI
333
+ # uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments