19
19
20
20
steps :
21
21
- name : Check out repository
22
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
23
23
24
24
- name : Build and Install FMX
25
25
run : |
@@ -38,10 +38,10 @@ jobs:
38
38
39
39
- name : Cache Stubs
40
40
id : cache-stubs
41
- uses : actions/cache@v3
41
+ uses : actions/cache@v4
42
42
with :
43
43
path : .\delphifmx\__init__.pyi
44
- key : ${{ runner.os }}-stubs
44
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphifmx\*') }}
45
45
46
46
build_stubs_linux :
47
47
name : Build FMX Stubs for Linux
55
55
56
56
steps :
57
57
- name : Check out repository
58
- uses : actions/checkout@v3
58
+ uses : actions/checkout@v4
59
59
60
60
- name : Set up Python ${{ matrix.python }}
61
61
uses : actions/setup-python@v3
@@ -79,10 +79,10 @@ jobs:
79
79
80
80
- name : Cache Stubs
81
81
id : cache-stubs
82
- uses : actions/cache@v3
82
+ uses : actions/cache@v4
83
83
with :
84
84
path : ./delphifmx/__init__.pyi
85
- key : ${{ runner.os }}-stubs
85
+ key : ${{ runner.os }}-cache-${{ hashFiles('./delphifmx/*') }}
86
86
87
87
build_stubs_macos :
88
88
name : Build FMX Stubs MacOS
96
96
97
97
steps :
98
98
- name : Check out repository
99
- uses : actions/checkout@v3
99
+ uses : actions/checkout@v4
100
100
101
101
- name : Set up Python ${{ matrix.python }}
102
102
uses : actions/setup-python@v3
@@ -120,10 +120,10 @@ jobs:
120
120
121
121
- name : Cache Stubs
122
122
id : cache-stubs
123
- uses : actions/cache@v3
123
+ uses : actions/cache@v4
124
124
with :
125
125
path : ./delphifmx/__init__.pyi
126
- key : Macos-stubs
126
+ key : MacOS-cache-${{ hashFiles('./delphifmx/*') }}
127
127
enableCrossOsArchive : true
128
128
129
129
# This build makes delphifmx available for Android
@@ -138,7 +138,7 @@ jobs:
138
138
arch : " x86_64"
139
139
steps :
140
140
- name : Check out repository
141
- uses : actions/checkout@v3
141
+ uses : actions/checkout@v4
142
142
with :
143
143
fetch-depth : 0
144
144
@@ -154,8 +154,9 @@ jobs:
154
154
python setup.py bdist_wheel --universal
155
155
156
156
- name : Save sdist
157
- uses : actions/upload-artifact@v2
157
+ uses : actions/upload-artifact@v4
158
158
with :
159
+ name : artifacts-universal-${{ matrix.python }}
159
160
path : dist/*.whl
160
161
if-no-files-found : error
161
162
@@ -165,22 +166,24 @@ jobs:
165
166
runs-on : ${{ matrix.os }}
166
167
strategy :
167
168
matrix :
168
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
169
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
169
170
include :
170
171
- os : [windows-latest]
171
172
arch : ["x86"]
172
173
steps :
173
174
- name : Check out repository
174
- uses : actions/checkout@v3
175
+ uses : actions/checkout@v4
175
176
with :
176
177
fetch-depth : 0
177
178
178
179
- name : Restore Cached Stubs
179
180
id : cache-stubs
180
- uses : actions/cache@v3
181
+ uses : actions/cache@v4
181
182
with :
182
183
path : .\delphifmx\__init__.pyi
183
- key : ${{ runner.os }}-stubs
184
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphifmx\*') }}
185
+ restore-keys : |
186
+ ${{ runner.os }}-cache-
184
187
185
188
- name : Set up Python ${{ matrix.python }}
186
189
uses : actions/setup-python@v3
@@ -189,14 +192,15 @@ jobs:
189
192
architecture : " x86"
190
193
191
194
- name : Build bdist wheel
192
- run : |
195
+ run : |
193
196
python -m pip install setuptools --upgrade
194
197
python -m pip install wheel --upgrade
195
198
python setup.py bdist_wheel --plat-name=win32
196
199
197
200
- name : Save wheel
198
- uses : actions/upload-artifact@v2
201
+ uses : actions/upload-artifact@v4
199
202
with :
203
+ name : artifacts-win32-${{ matrix.python }}
200
204
path : dist/*.whl
201
205
if-no-files-found : error
202
206
@@ -206,22 +210,24 @@ jobs:
206
210
runs-on : ${{ matrix.os }}
207
211
strategy :
208
212
matrix :
209
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
213
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
210
214
include :
211
215
- os : [windows-latest]
212
216
arch : ["AMD64"]
213
217
steps :
214
218
- name : Check out repository
215
- uses : actions/checkout@v3
219
+ uses : actions/checkout@v4
216
220
with :
217
221
fetch-depth : 0
218
222
219
223
- name : Restore Cached Stubs
220
224
id : cache-stubs
221
- uses : actions/cache@v3
225
+ uses : actions/cache@v4
222
226
with :
223
227
path : .\delphifmx\__init__.pyi
224
- key : ${{ runner.os }}-stubs
228
+ key : ${{ runner.os }}-cache-${{ hashFiles('.\delphifmx\*') }}
229
+ restore-keys : |
230
+ ${{ runner.os }}-cache-
225
231
226
232
- name : Set up Python ${{ matrix.python }}
227
233
uses : actions/setup-python@v3
@@ -236,8 +242,9 @@ jobs:
236
242
python setup.py bdist_wheel --plat-name=win_amd64
237
243
238
244
- name : Save wheel
239
- uses : actions/upload-artifact@v2
245
+ uses : actions/upload-artifact@v4
240
246
with :
247
+ name : artifacts-win64-${{ matrix.python }}
241
248
path : dist/*.whl
242
249
if-no-files-found : error
243
250
@@ -247,22 +254,24 @@ jobs:
247
254
runs-on : ${{ matrix.os }}
248
255
strategy :
249
256
matrix :
250
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
257
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
251
258
include :
252
259
- os : [ubuntu-20.04] # ubuntu-latest doesn't support cp36
253
260
arch : ["x86_64"]
254
261
steps :
255
262
- name : Check out repository
256
- uses : actions/checkout@v3
263
+ uses : actions/checkout@v4
257
264
with :
258
265
fetch-depth : 0
259
266
260
267
- name : Restore Cached Stubs
261
268
id : cache-stubs
262
- uses : actions/cache@v3
269
+ uses : actions/cache@v4
263
270
with :
264
271
path : ./delphifmx/__init__.pyi
265
- key : ${{ runner.os }}-stubs
272
+ key : ${{ runner.os }}-cache-${{ hashFiles('./delphifmx/*') }}
273
+ restore-keys : |
274
+ ${{ runner.os }}-cache-
266
275
267
276
- name : Set up Python ${{ matrix.python }}
268
277
uses : actions/setup-python@v3
@@ -276,8 +285,9 @@ jobs:
276
285
python setup.py bdist_wheel --plat-name=manylinux1_x86_64
277
286
278
287
- name : Save wheel
279
- uses : actions/upload-artifact@v2
288
+ uses : actions/upload-artifact@v4
280
289
with :
290
+ name : artifacts-linux-${{ matrix.python }}
281
291
path : dist/*.whl
282
292
if-no-files-found : error
283
293
@@ -287,22 +297,24 @@ jobs:
287
297
runs-on : ${{ matrix.os }}
288
298
strategy :
289
299
matrix :
290
- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
300
+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
291
301
include :
292
- - os : [macos-latest]
302
+ - os : [macos-13] # macos-latest is arm only
293
303
arch : ["x86_64"]
294
304
steps :
295
305
- name : Check out repository
296
- uses : actions/checkout@v3
306
+ uses : actions/checkout@v4
297
307
with :
298
308
fetch-depth : 0
299
309
300
310
- name : Restore Cached Stubs
301
311
id : cache-stubs
302
- uses : actions/cache@v3
312
+ uses : actions/cache@v4
303
313
with :
304
314
path : ./delphifmx/__init__.pyi
305
- key : Macos-stubs
315
+ key : MacOS-cache-${{ hashFiles('./delphifmx/*') }}
316
+ restore-keys : |
317
+ MacOS-cache-
306
318
enableCrossOsArchive : true
307
319
308
320
- name : Set up Python ${{ matrix.python }}
@@ -317,8 +329,9 @@ jobs:
317
329
python setup.py bdist_wheel --plat-name=macosx_10_9_x86_64
318
330
319
331
- name : Save wheel
320
- uses : actions/upload-artifact@v2
332
+ uses : actions/upload-artifact@v4
321
333
with :
334
+ name : artifacts-macintel-${{ matrix.python }}
322
335
path : dist/*.whl
323
336
if-no-files-found : error
324
337
@@ -328,22 +341,24 @@ jobs:
328
341
runs-on : ${{ matrix.os }}
329
342
strategy :
330
343
matrix :
331
- python : ['3.8', '3.9', '3.10', '3.11']
344
+ python : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13' ]
332
345
include :
333
346
- os : [macos-latest]
334
347
arch : ["arm64"]
335
348
steps :
336
349
- name : Check out repository
337
- uses : actions/checkout@v3
350
+ uses : actions/checkout@v4
338
351
with :
339
352
fetch-depth : 0
340
353
341
354
- name : Restore Cached Stubs
342
355
id : cache-stubs
343
- uses : actions/cache@v3
356
+ uses : actions/cache@v4
344
357
with :
345
358
path : ./delphifmx/__init__.pyi
346
- key : Macos-stubs
359
+ key : MacOS-cache-${{ hashFiles('./delphifmx/*') }}
360
+ restore-keys : |
361
+ MacOS-cache-
347
362
enableCrossOsArchive : true
348
363
349
364
- name : Set up Python ${{ matrix.python }}
@@ -358,8 +373,9 @@ jobs:
358
373
python setup.py bdist_wheel --plat-name=macosx_11_0_arm64
359
374
360
375
- name : Save wheel
361
- uses : actions/upload-artifact@v2
376
+ uses : actions/upload-artifact@v4
362
377
with :
378
+ name : artifacts-marcarm-${{ matrix.python }}
363
379
path : dist/*.whl
364
380
if-no-files-found : error
365
381
@@ -376,8 +392,9 @@ jobs:
376
392
steps :
377
393
- uses : actions/download-artifact@v2
378
394
with :
379
- name : artifact
395
+ pattern : artifacts-*
380
396
path : dist
397
+ merge-multiple : true
381
398
382
399
- name : Publish package to TestPyPI
383
400
uses : pypa/gh-action-pypi-publish@release/v1
@@ -397,8 +414,9 @@ jobs:
397
414
steps :
398
415
- uses : actions/download-artifact@v2
399
416
with :
400
- name : artifact
417
+ pattern : artifacts-*
401
418
path : dist
419
+ merge-multiple : true
402
420
403
421
- name : Publish package to PyPI
404
422
uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments