2323 env_os : MACOS
2424 steps :
2525 - name : Check out repository code
26- uses : actions/checkout@v2
26+ uses : actions/checkout@v4
2727 with :
2828 submodules : ' recursive'
2929 - name : Build Dxapi
3232 CC : clang
3333 OS : ${{ matrix.env_os }}
3434 - name : Archive artifacts
35- uses : actions/upload-artifact@v2
35+ uses : actions/upload-artifact@v3
3636 with :
3737 name : dxapi-${{ matrix.os }}
3838 path : ./dxapi/bin/libdxapi-x64.a
@@ -41,15 +41,15 @@ jobs:
4141 runs-on : windows-2019
4242 steps :
4343 - name : Check out repository code
44- uses : actions/checkout@v2
44+ uses : actions/checkout@v4
4545 with :
4646 submodules : ' recursive'
4747 - name : Use MSBuild
4848 uses : microsoft/setup-msbuild@v1.1
4949 - name : Build Solution
5050 run : msbuild ./dxapi/dxapi.sln /p:configuration=release /p:platform=x64 /t:rebuild
5151 - name : Archive artifacts
52- uses : actions/upload-artifact@v2
52+ uses : actions/upload-artifact@v3
5353 with :
5454 name : dxapi-windows
5555 path : ./dxapi/bin/dxapi-x64.lib
@@ -74,11 +74,11 @@ jobs:
7474 py_env : ' 310'
7575 steps :
7676 - name : Check out repository code
77- uses : actions/checkout@v2
77+ uses : actions/checkout@v4
7878 with :
7979 submodules : ' recursive'
8080 - name : Download dxapi-linux artifacts
81- uses : actions/download-artifact@v2
81+ uses : actions/download-artifact@v3
8282 with :
8383 name : dxapi-ubuntu-20.04
8484 path : dxapi/bin
@@ -103,7 +103,7 @@ jobs:
103103 CC : clang
104104 PYTHON_VERSION : ${{ matrix.py_env }}
105105 - name : Archive artifacts
106- uses : actions/upload-artifact@v2
106+ uses : actions/upload-artifact@v3
107107 with :
108108 name : tbapi-python-linux
109109 path : |
@@ -130,15 +130,15 @@ jobs:
130130 py_env : ' 310'
131131 steps :
132132 - name : Check out repository code
133- uses : actions/checkout@v2
133+ uses : actions/checkout@v4
134134 with :
135135 submodules : ' recursive'
136136 - name : Download dxapi-windows artifacts
137- uses : actions/download-artifact@v2
137+ uses : actions/download-artifact@v3
138138 with :
139139 name : dxapi-windows
140140 path : dxapi/bin
141- - uses : actions/setup-python@v2
141+ - uses : actions/setup-python@v4
142142 with :
143143 python-version : ' ${{ matrix.py }}'
144144 - name : Use MSBuild
@@ -155,7 +155,7 @@ jobs:
155155 $Env:PYTHON${{ matrix.py_env }}_HOME
156156 msbuild ./tbapi-python.sln /p:configuration=Release${{ matrix.py_env }} /p:platform=x64 /t:rebuild
157157 - name : Archive artifacts
158- uses : actions/upload-artifact@v2
158+ uses : actions/upload-artifact@v3
159159 with :
160160 name : tbapi-python-windows
161161 path : |
@@ -192,15 +192,15 @@ jobs:
192192 py_lib : ' python3.10'
193193 steps :
194194 - name : Check out repository code
195- uses : actions/checkout@v2
195+ uses : actions/checkout@v4
196196 with :
197197 submodules : ' recursive'
198198 - name : Download dxapi-macos artifacts
199- uses : actions/download-artifact@v2
199+ uses : actions/download-artifact@v3
200200 with :
201201 name : dxapi-macos-11
202202 path : dxapi/bin
203- - uses : actions/setup-python@v2
203+ - uses : actions/setup-python@v4
204204 with :
205205 python-version : ${{ matrix.py_v }}
206206 - name : Install SWIG
@@ -231,7 +231,7 @@ jobs:
231231 PYTHON_MACOS_LIB_PATH : /Users/runner/hostedtoolcache/Python/${{ matrix.py_v }}/x64/lib
232232 PYTHON_MACOS_LIB : ${{ matrix.py_lib }}
233233 - name : Archive artifacts
234- uses : actions/upload-artifact@v2
234+ uses : actions/upload-artifact@v3
235235 with :
236236 name : tbapi-python-macos
237237 path : |
@@ -245,23 +245,23 @@ jobs:
245245 needs : [build-linux, build-macos, build-windows]
246246 steps :
247247 - name : Check out repository code
248- uses : actions/checkout@v2
248+ uses : actions/checkout@v4
249249 - name : Download tbapi-python-linux artifacts
250- uses : actions/download-artifact@v2
250+ uses : actions/download-artifact@v3
251251 with :
252252 name : tbapi-python-linux
253253 path : tbapi
254254 - name : Download tbapi-python-windows artifacts
255- uses : actions/download-artifact@v2
255+ uses : actions/download-artifact@v3
256256 with :
257257 name : tbapi-python-windows
258258 path : tbapi
259259 - name : Download tbapi-python-macos artifacts
260- uses : actions/download-artifact@v2
260+ uses : actions/download-artifact@v3
261261 with :
262262 name : tbapi-python-macos
263263 path : tbapi
264- - uses : actions/setup-python@v2
264+ - uses : actions/setup-python@v4
265265 with :
266266 python-version : " 3.10.2"
267267 - name : Copy version file
@@ -274,7 +274,7 @@ jobs:
274274 export LANG=C.UTF-8
275275 pydoc-markdown > ./tbapi/tbapi.md
276276 - name : Archive artifacts
277- uses : actions/upload-artifact@v2
277+ uses : actions/upload-artifact@v3
278278 with :
279279 name : tbapi-python
280280 path : |
@@ -285,7 +285,7 @@ jobs:
285285 needs : [build-macos, build-windows] # linux installer needs for macos tests
286286 steps :
287287 - name : Check out repository code
288- uses : actions/checkout@v2
288+ uses : actions/checkout@v4
289289 with :
290290 submodules : ' recursive'
291291 - name : Download linux installer
@@ -301,13 +301,13 @@ jobs:
301301 tag : " 6.1.7"
302302 fileName : " timebase-windows-installer-20220506.jar"
303303 - name : Archive artifacts installer (temp task)
304- uses : actions/upload-artifact@v2
304+ uses : actions/upload-artifact@v3
305305 with :
306306 name : timebase-linux-installer
307307 path : |
308308 ./timebase-linux-installer-20220506.jar
309309 - name : Archive artifacts installer
310- uses : actions/upload-artifact@v2
310+ uses : actions/upload-artifact@v3
311311 with :
312312 name : timebase-windows-installer
313313 path : |
@@ -329,15 +329,15 @@ jobs:
329329 - 8011:8011
330330 steps :
331331 - name : Check out repository code
332- uses : actions/checkout@v2
332+ uses : actions/checkout@v4
333333 with :
334334 submodules : ' recursive'
335335 - name : Download tbapi-python artifacts
336- uses : actions/download-artifact@v2
336+ uses : actions/download-artifact@v3
337337 with :
338338 name : tbapi-python
339339 path : tests/tbapi
340- - uses : actions/setup-python@v2
340+ - uses : actions/setup-python@v4
341341 with :
342342 python-version : ' ${{ matrix.py }}'
343343 - name : Run tests
@@ -350,7 +350,8 @@ jobs:
350350 TIMEBASE_HOST : localhost
351351 TIMEBASE_PORT : 8011
352352 - name : Archive artifacts
353- uses : actions/upload-artifact@v2
353+ if : ${{ always() }}
354+ uses : actions/upload-artifact@v3
354355 with :
355356 name : test-reports-tbapi-python-linux-${{ matrix.py }}
356357 path : |
@@ -364,15 +365,16 @@ jobs:
364365 py : ['3.6', '3.7', '3.8', '3.9', '3.10']
365366 steps :
366367 - name : Check out repository code
367- uses : actions/checkout@v2
368+ uses : actions/checkout@v4
368369 with :
369370 submodules : ' recursive'
370371 - name : Setup java for TimeBase installer
371- uses : actions/setup-java@v1
372+ uses : actions/setup-java@v3
372373 with :
373374 java-version : ' 11'
375+ distribution : ' corretto'
374376 - name : Download windows-installer artifacts
375- uses : actions/download-artifact@v2
377+ uses : actions/download-artifact@v3
376378 with :
377379 name : timebase-windows-installer
378380 path : tests/install
@@ -384,11 +386,11 @@ jobs:
384386 Start-Process -FilePath "./tdbserver.cmd" -ArgumentList "-home ."
385387 Start-Sleep 5
386388 - name : Download tbapi-python artifacts
387- uses : actions/download-artifact@v2
389+ uses : actions/download-artifact@v3
388390 with :
389391 name : tbapi-python
390392 path : tests/tbapi
391- - uses : actions/setup-python@v2
393+ - uses : actions/setup-python@v4
392394 with :
393395 python-version : ' ${{ matrix.py }}'
394396 - name : Run tests
@@ -401,7 +403,8 @@ jobs:
401403 TIMEBASE_HOST : localhost
402404 TIMEBASE_PORT : 8011
403405 - name : Archive artifacts
404- uses : actions/upload-artifact@v2
406+ if : ${{ always() }}
407+ uses : actions/upload-artifact@v3
405408 with :
406409 name : test-reports-tbapi-python-windows-${{ matrix.py }}
407410 path : |
@@ -427,15 +430,16 @@ jobs:
427430 py_v : ' 3.10.2'
428431 steps :
429432 - name : Check out repository code
430- uses : actions/checkout@v2
433+ uses : actions/checkout@v4
431434 with :
432435 submodules : ' recursive'
433436 - name : Setup java for TimeBase installer
434- uses : actions/setup-java@v1
437+ uses : actions/setup-java@v3
435438 with :
436439 java-version : ' 11'
440+ distribution : ' corretto'
437441 - name : Download linux-installer artifacts
438- uses : actions/download-artifact@v2
442+ uses : actions/download-artifact@v3
439443 with :
440444 name : timebase-linux-installer
441445 path : tests/install
@@ -446,11 +450,11 @@ jobs:
446450 cd Timebase/bin
447451 screen -dm ./tdbserver.sh -home . -port 8011
448452 - name : Download tbapi-python artifacts
449- uses : actions/download-artifact@v2
453+ uses : actions/download-artifact@v3
450454 with :
451455 name : tbapi-python
452456 path : tests/tbapi
453- - uses : actions/setup-python@v2
457+ - uses : actions/setup-python@v4
454458 with :
455459 python-version : ' ${{ matrix.py_v }}'
456460 - name : Run tests
@@ -460,7 +464,8 @@ jobs:
460464 python -c "import tbapi; print(tbapi.version())"
461465 python TestAll.py
462466 - name : Archive artifacts
463- uses : actions/upload-artifact@v2
467+ if : ${{ always() }}
468+ uses : actions/upload-artifact@v3
464469 with :
465470 name : test-reports-tbapi-python-macos-${{ matrix.py }}
466471 path : |
0 commit comments