From 522b2b75475c66f2c9c84ca21f6801e0cf21f2c3 Mon Sep 17 00:00:00 2001 From: Robert Schoene Date: Mon, 19 Aug 2024 16:34:29 +0200 Subject: [PATCH] also remove oneapi if not needed --- .github/workflows/cmake.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e19877b7..192b5014 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -207,10 +207,15 @@ jobs: run: | sudo apt remove clang-10 sudo apt autoremove - - name: Install CUDA runtime (if needed) - if: matrix.CUDA != '0' && matrix.ONEAPI == 0 + - name: UnInstall CUDA runtime (if needed) + if: matrix.CUDA != '0' && matrix.ONEAPI == '0' run: | sudo rm -rf ${CUDA_ROOT} + - name: UnInstall OneAPI Base-Toolkit (if needed) + if: matrix.ONEAPI != '0' && matrix.CUDA == '0' + run: | + sudo apt remove intel-basekit-${{ matrix.ONEAPI }} + sudo apt autoremove build-windows: strategy: fail-fast: false