From b32fc7421a0f4398b2320a1a62562a3271fc5c53 Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Sat, 25 Nov 2023 22:02:33 +0000 Subject: [PATCH] try to fix CUDA - change step condition - see where NiftyPET*cmake is - exclude CUDA tests from ctest --- .github/workflows/build-test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 14d102b40..70cd00382 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -166,7 +166,7 @@ jobs: echo CC="$CC" >> $GITHUB_ENV echo CXX="$CXX" >> $GITHUB_ENV - - if: ${{ ! matrix.cuda_version == '0' }} + - if: matrix.cuda_version != '0' uses: Jimver/cuda-toolkit@v0.2.11 id: cuda-toolkit with: @@ -246,6 +246,7 @@ jobs: export HMUDIR=${GITHUB_WORKSPACE}/mmr_hardwareumaps python -m pip install "nipet>=2" niftypet_cmake_prefix=$(python -c "from niftypet.nipet import cmake_prefix; print(cmake_prefix)") + ls -R "$niftypet_cmake_prefix" echo NiftyPET_PREFIX="$niftypet_cmake_prefix" >> $GITHUB_ENV fi @@ -333,6 +334,10 @@ jobs: if test ${BUILD_TYPE} = Debug; then EXCLUDE="-E test_data_processor_projectors|test_export_array|test_ArcCorrection|test_blocks_on_cylindrical_projectors" fi + if test ${{matrix.cuda_version}} != "0" + # No CUDA drivers on GitHub Actions + EXCLUDE="${EXCLUDE}|parallelproj|NiftyPET|test_blocks_on_cylindrical_projectors" + fi ctest --output-on-failure -C ${BUILD_TYPE} ${EXCLUDE} - name: recon_test_pack