23
23
env_os : MACOS
24
24
steps :
25
25
- name : Check out repository code
26
- uses : actions/checkout@v2
26
+ uses : actions/checkout@v4
27
27
with :
28
28
submodules : ' recursive'
29
29
- name : Build Dxapi
32
32
CC : clang
33
33
OS : ${{ matrix.env_os }}
34
34
- name : Archive artifacts
35
- uses : actions/upload-artifact@v2
35
+ uses : actions/upload-artifact@v3
36
36
with :
37
37
name : dxapi-${{ matrix.os }}
38
38
path : ./dxapi/bin/libdxapi-x64.a
@@ -41,15 +41,15 @@ jobs:
41
41
runs-on : windows-2019
42
42
steps :
43
43
- name : Check out repository code
44
- uses : actions/checkout@v2
44
+ uses : actions/checkout@v4
45
45
with :
46
46
submodules : ' recursive'
47
47
- name : Use MSBuild
48
48
uses : microsoft/setup-msbuild@v1.1
49
49
- name : Build Solution
50
50
run : msbuild ./dxapi/dxapi.sln /p:configuration=release /p:platform=x64 /t:rebuild
51
51
- name : Archive artifacts
52
- uses : actions/upload-artifact@v2
52
+ uses : actions/upload-artifact@v3
53
53
with :
54
54
name : dxapi-windows
55
55
path : ./dxapi/bin/dxapi-x64.lib
@@ -74,11 +74,11 @@ jobs:
74
74
py_env : ' 310'
75
75
steps :
76
76
- name : Check out repository code
77
- uses : actions/checkout@v2
77
+ uses : actions/checkout@v4
78
78
with :
79
79
submodules : ' recursive'
80
80
- name : Download dxapi-linux artifacts
81
- uses : actions/download-artifact@v2
81
+ uses : actions/download-artifact@v3
82
82
with :
83
83
name : dxapi-ubuntu-20.04
84
84
path : dxapi/bin
@@ -103,7 +103,7 @@ jobs:
103
103
CC : clang
104
104
PYTHON_VERSION : ${{ matrix.py_env }}
105
105
- name : Archive artifacts
106
- uses : actions/upload-artifact@v2
106
+ uses : actions/upload-artifact@v3
107
107
with :
108
108
name : tbapi-python-linux
109
109
path : |
@@ -130,15 +130,15 @@ jobs:
130
130
py_env : ' 310'
131
131
steps :
132
132
- name : Check out repository code
133
- uses : actions/checkout@v2
133
+ uses : actions/checkout@v4
134
134
with :
135
135
submodules : ' recursive'
136
136
- name : Download dxapi-windows artifacts
137
- uses : actions/download-artifact@v2
137
+ uses : actions/download-artifact@v3
138
138
with :
139
139
name : dxapi-windows
140
140
path : dxapi/bin
141
- - uses : actions/setup-python@v2
141
+ - uses : actions/setup-python@v4
142
142
with :
143
143
python-version : ' ${{ matrix.py }}'
144
144
- name : Use MSBuild
@@ -155,7 +155,7 @@ jobs:
155
155
$Env:PYTHON${{ matrix.py_env }}_HOME
156
156
msbuild ./tbapi-python.sln /p:configuration=Release${{ matrix.py_env }} /p:platform=x64 /t:rebuild
157
157
- name : Archive artifacts
158
- uses : actions/upload-artifact@v2
158
+ uses : actions/upload-artifact@v3
159
159
with :
160
160
name : tbapi-python-windows
161
161
path : |
@@ -192,15 +192,15 @@ jobs:
192
192
py_lib : ' python3.10'
193
193
steps :
194
194
- name : Check out repository code
195
- uses : actions/checkout@v2
195
+ uses : actions/checkout@v4
196
196
with :
197
197
submodules : ' recursive'
198
198
- name : Download dxapi-macos artifacts
199
- uses : actions/download-artifact@v2
199
+ uses : actions/download-artifact@v3
200
200
with :
201
201
name : dxapi-macos-11
202
202
path : dxapi/bin
203
- - uses : actions/setup-python@v2
203
+ - uses : actions/setup-python@v4
204
204
with :
205
205
python-version : ${{ matrix.py_v }}
206
206
- name : Install SWIG
@@ -231,7 +231,7 @@ jobs:
231
231
PYTHON_MACOS_LIB_PATH : /Users/runner/hostedtoolcache/Python/${{ matrix.py_v }}/x64/lib
232
232
PYTHON_MACOS_LIB : ${{ matrix.py_lib }}
233
233
- name : Archive artifacts
234
- uses : actions/upload-artifact@v2
234
+ uses : actions/upload-artifact@v3
235
235
with :
236
236
name : tbapi-python-macos
237
237
path : |
@@ -245,23 +245,23 @@ jobs:
245
245
needs : [build-linux, build-macos, build-windows]
246
246
steps :
247
247
- name : Check out repository code
248
- uses : actions/checkout@v2
248
+ uses : actions/checkout@v4
249
249
- name : Download tbapi-python-linux artifacts
250
- uses : actions/download-artifact@v2
250
+ uses : actions/download-artifact@v3
251
251
with :
252
252
name : tbapi-python-linux
253
253
path : tbapi
254
254
- name : Download tbapi-python-windows artifacts
255
- uses : actions/download-artifact@v2
255
+ uses : actions/download-artifact@v3
256
256
with :
257
257
name : tbapi-python-windows
258
258
path : tbapi
259
259
- name : Download tbapi-python-macos artifacts
260
- uses : actions/download-artifact@v2
260
+ uses : actions/download-artifact@v3
261
261
with :
262
262
name : tbapi-python-macos
263
263
path : tbapi
264
- - uses : actions/setup-python@v2
264
+ - uses : actions/setup-python@v4
265
265
with :
266
266
python-version : " 3.10.2"
267
267
- name : Copy version file
@@ -274,7 +274,7 @@ jobs:
274
274
export LANG=C.UTF-8
275
275
pydoc-markdown > ./tbapi/tbapi.md
276
276
- name : Archive artifacts
277
- uses : actions/upload-artifact@v2
277
+ uses : actions/upload-artifact@v3
278
278
with :
279
279
name : tbapi-python
280
280
path : |
@@ -285,7 +285,7 @@ jobs:
285
285
needs : [build-macos, build-windows] # linux installer needs for macos tests
286
286
steps :
287
287
- name : Check out repository code
288
- uses : actions/checkout@v2
288
+ uses : actions/checkout@v4
289
289
with :
290
290
submodules : ' recursive'
291
291
- name : Download linux installer
@@ -301,13 +301,13 @@ jobs:
301
301
tag : " 6.1.7"
302
302
fileName : " timebase-windows-installer-20220506.jar"
303
303
- name : Archive artifacts installer (temp task)
304
- uses : actions/upload-artifact@v2
304
+ uses : actions/upload-artifact@v3
305
305
with :
306
306
name : timebase-linux-installer
307
307
path : |
308
308
./timebase-linux-installer-20220506.jar
309
309
- name : Archive artifacts installer
310
- uses : actions/upload-artifact@v2
310
+ uses : actions/upload-artifact@v3
311
311
with :
312
312
name : timebase-windows-installer
313
313
path : |
@@ -329,15 +329,15 @@ jobs:
329
329
- 8011:8011
330
330
steps :
331
331
- name : Check out repository code
332
- uses : actions/checkout@v2
332
+ uses : actions/checkout@v4
333
333
with :
334
334
submodules : ' recursive'
335
335
- name : Download tbapi-python artifacts
336
- uses : actions/download-artifact@v2
336
+ uses : actions/download-artifact@v3
337
337
with :
338
338
name : tbapi-python
339
339
path : tests/tbapi
340
- - uses : actions/setup-python@v2
340
+ - uses : actions/setup-python@v4
341
341
with :
342
342
python-version : ' ${{ matrix.py }}'
343
343
- name : Run tests
@@ -350,7 +350,8 @@ jobs:
350
350
TIMEBASE_HOST : localhost
351
351
TIMEBASE_PORT : 8011
352
352
- name : Archive artifacts
353
- uses : actions/upload-artifact@v2
353
+ if : ${{ always() }}
354
+ uses : actions/upload-artifact@v3
354
355
with :
355
356
name : test-reports-tbapi-python-linux-${{ matrix.py }}
356
357
path : |
@@ -364,15 +365,16 @@ jobs:
364
365
py : ['3.6', '3.7', '3.8', '3.9', '3.10']
365
366
steps :
366
367
- name : Check out repository code
367
- uses : actions/checkout@v2
368
+ uses : actions/checkout@v4
368
369
with :
369
370
submodules : ' recursive'
370
371
- name : Setup java for TimeBase installer
371
- uses : actions/setup-java@v1
372
+ uses : actions/setup-java@v3
372
373
with :
373
374
java-version : ' 11'
375
+ distribution : ' corretto'
374
376
- name : Download windows-installer artifacts
375
- uses : actions/download-artifact@v2
377
+ uses : actions/download-artifact@v3
376
378
with :
377
379
name : timebase-windows-installer
378
380
path : tests/install
@@ -384,11 +386,11 @@ jobs:
384
386
Start-Process -FilePath "./tdbserver.cmd" -ArgumentList "-home ."
385
387
Start-Sleep 5
386
388
- name : Download tbapi-python artifacts
387
- uses : actions/download-artifact@v2
389
+ uses : actions/download-artifact@v3
388
390
with :
389
391
name : tbapi-python
390
392
path : tests/tbapi
391
- - uses : actions/setup-python@v2
393
+ - uses : actions/setup-python@v4
392
394
with :
393
395
python-version : ' ${{ matrix.py }}'
394
396
- name : Run tests
@@ -401,7 +403,8 @@ jobs:
401
403
TIMEBASE_HOST : localhost
402
404
TIMEBASE_PORT : 8011
403
405
- name : Archive artifacts
404
- uses : actions/upload-artifact@v2
406
+ if : ${{ always() }}
407
+ uses : actions/upload-artifact@v3
405
408
with :
406
409
name : test-reports-tbapi-python-windows-${{ matrix.py }}
407
410
path : |
@@ -427,15 +430,16 @@ jobs:
427
430
py_v : ' 3.10.2'
428
431
steps :
429
432
- name : Check out repository code
430
- uses : actions/checkout@v2
433
+ uses : actions/checkout@v4
431
434
with :
432
435
submodules : ' recursive'
433
436
- name : Setup java for TimeBase installer
434
- uses : actions/setup-java@v1
437
+ uses : actions/setup-java@v3
435
438
with :
436
439
java-version : ' 11'
440
+ distribution : ' corretto'
437
441
- name : Download linux-installer artifacts
438
- uses : actions/download-artifact@v2
442
+ uses : actions/download-artifact@v3
439
443
with :
440
444
name : timebase-linux-installer
441
445
path : tests/install
@@ -446,11 +450,11 @@ jobs:
446
450
cd Timebase/bin
447
451
screen -dm ./tdbserver.sh -home . -port 8011
448
452
- name : Download tbapi-python artifacts
449
- uses : actions/download-artifact@v2
453
+ uses : actions/download-artifact@v3
450
454
with :
451
455
name : tbapi-python
452
456
path : tests/tbapi
453
- - uses : actions/setup-python@v2
457
+ - uses : actions/setup-python@v4
454
458
with :
455
459
python-version : ' ${{ matrix.py_v }}'
456
460
- name : Run tests
@@ -460,7 +464,8 @@ jobs:
460
464
python -c "import tbapi; print(tbapi.version())"
461
465
python TestAll.py
462
466
- name : Archive artifacts
463
- uses : actions/upload-artifact@v2
467
+ if : ${{ always() }}
468
+ uses : actions/upload-artifact@v3
464
469
with :
465
470
name : test-reports-tbapi-python-macos-${{ matrix.py }}
466
471
path : |
0 commit comments