@@ -259,8 +259,10 @@ jobs:
259
259
260
260
# Install ROOT (warning: currently only valid on Ubuntu)
261
261
if test "${{matrix.ROOT}}XX" == "ONXX"; then
262
- wget https://root.cern/download/root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz
263
- tar -xzvf root_v6.24.02.Linux-ubuntu20-x86_64-gcc9.3.tar.gz
262
+ ROOT_file=root_v6.28.12.Linux-ubuntu20-x86_64-gcc9.4.tar.gz
263
+ wget https://root.cern/download/"$ROOT_file"
264
+ tar -xzvf "$ROOT_file"
265
+ rm "$ROOT_file"
264
266
source root/bin/thisroot.sh
265
267
fi
266
268
@@ -330,6 +332,12 @@ jobs:
330
332
source ${GITHUB_WORKSPACE}/my-env/bin/activate
331
333
cmake --build . -j 2 --config ${BUILD_TYPE}} --target install
332
334
335
+ # Enable tmate debugging of manually-triggered workflows if the input option was provided
336
+ - name : Setup tmate session if triggered
337
+ uses : mxschmitt/action-tmate@v3
338
+ timeout-minutes : 15
339
+ if : ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled == 'true' }}
340
+
333
341
- name : ctest
334
342
shell : bash
335
343
env :
@@ -354,6 +362,43 @@ jobs:
354
362
# execute tests
355
363
ctest --output-on-failure -C ${BUILD_TYPE} ${EXCLUDE}
356
364
365
+ - name : examples
366
+ shell : bash
367
+ run : |
368
+ set -ex;
369
+ PATH=${CMAKE_INSTALL_PREFIX}/bin:$PATH
370
+ # Run examples to see if they work
371
+ cd ${GITHUB_WORKSPACE}/examples/PET_simulation
372
+ ./run_simulation.sh 1> /dev/null
373
+
374
+ # Run the Demo executables
375
+ EXE_LOC=${GITHUB_WORKSPACE}/build/src/examples/C++/using_STIR_LOCAL
376
+ cd ${GITHUB_WORKSPACE}/examples/C++/using_STIR_LOCAL
377
+
378
+ generate_image generate_image.par
379
+ forward_project sino.hs image.hv small.hs
380
+
381
+ # Cannot test demo1 or demo2 as they require interactivity. Piping does not work.
382
+ ${EXE_LOC}/demo3 demo.par --display_off
383
+ ${EXE_LOC}/demo3 demoPM.par --display_off
384
+ ${EXE_LOC}/demo4_obj_fun demo4_obj_fun.par
385
+ ${EXE_LOC}/demo5_line_search demo5_line_search.par
386
+
387
+ # build and run C++/using_installed_STIR
388
+ cd ${GITHUB_WORKSPACE}/examples/C++/using_installed_STIR
389
+ cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
390
+ cmake --build build/ --config Release --target install
391
+ # run demo
392
+ demo_create_image
393
+ # just check if its output makes sense
394
+ list_image_info test.hv
395
+
396
+ - name : remove build
397
+ shell : bash
398
+ # remove to create some disk space
399
+ run :
400
+ rm -rf cd ${GITHUB_WORKSPACE}/build
401
+
357
402
- name : recon_test_pack
358
403
shell : bash
359
404
env :
@@ -378,7 +423,7 @@ jobs:
378
423
./run_SPECT_tests.sh
379
424
fi
380
425
381
- - name : Upload log files for debugging
426
+ - name : Upload recon_test_pack log files for debugging
382
427
uses : actions/upload-artifact@v3
383
428
if : failure()
384
429
with :
@@ -388,43 +433,6 @@ jobs:
388
433
${{ github.workspace }}/recon_test_pack/**/my_*s
389
434
retention-days : 7
390
435
391
- # Enable tmate debugging of manually-triggered workflows if the input option was provided
392
- - name : Setup tmate session if triggered
393
- uses : mxschmitt/action-tmate@v3
394
- timeout-minutes : 15
395
- if : ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled == 'true' }}
396
-
397
- - name : examples
398
- shell : bash
399
- run : |
400
- set -ex;
401
- PATH=${CMAKE_INSTALL_PREFIX}/bin:$PATH
402
- # Run examples to see if they work
403
- cd ${GITHUB_WORKSPACE}/examples/PET_simulation
404
- ./run_simulation.sh 1> /dev/null
405
-
406
- # Run the Demo executables
407
- EXE_LOC=${GITHUB_WORKSPACE}/build/src/examples/C++/using_STIR_LOCAL
408
- cd ${GITHUB_WORKSPACE}/examples/C++/using_STIR_LOCAL
409
-
410
- generate_image generate_image.par
411
- forward_project sino.hs image.hv small.hs
412
-
413
- # Cannot test demo1 or demo2 as they require interactivity. Piping does not work.
414
- ${EXE_LOC}/demo3 demo.par --display_off
415
- ${EXE_LOC}/demo3 demoPM.par --display_off
416
- ${EXE_LOC}/demo4_obj_fun demo4_obj_fun.par
417
- ${EXE_LOC}/demo5_line_search demo5_line_search.par
418
-
419
- # build and run C++/using_installed_STIR
420
- cd ${GITHUB_WORKSPACE}/examples/C++/using_installed_STIR
421
- cmake -S . -B build/ -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
422
- cmake --build build/ --config Release --target install
423
- # run demo
424
- demo_create_image
425
- # just check if its output makes sense
426
- list_image_info test.hv
427
-
428
436
- name : Python
429
437
shell : bash
430
438
run : |
0 commit comments