From 986ad66ce372832b4db78a850fd360b6ee12f114 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Fri, 21 Nov 2025 13:22:25 +0100 Subject: [PATCH] Check if cl.cfg exists before printing the lines from it --- .github/workflows/conda-package.yml | 7 ++++++- .github/workflows/cron-run-tests.yaml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index 30266a4ddf5f..f379a292c4e6 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -366,9 +366,14 @@ jobs: } else { Write-Warning "File $script_path was NOT found!" } + # Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default $cl_cfg="$env:CONDA_PREFIX\Library\bin\cl.cfg" - Get-Content -Tail 5 -Path $cl_cfg + if (Test-Path $cl_cfg) { + Get-Content -Tail 5 -Path $cl_cfg + } else { + Write-Warning "File $cl_cfg was NOT found!" + } - name: Smoke test run: | diff --git a/.github/workflows/cron-run-tests.yaml b/.github/workflows/cron-run-tests.yaml index d13048cc28d0..7278c0db353a 100644 --- a/.github/workflows/cron-run-tests.yaml +++ b/.github/workflows/cron-run-tests.yaml @@ -105,9 +105,14 @@ jobs: } else { Write-Warning "File $script_path was NOT found!" } + # Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default $cl_cfg="$env:CONDA_PREFIX\Library\bin\cl.cfg" - Get-Content -Tail 5 -Path $cl_cfg + if (Test-Path $cl_cfg) { + Get-Content -Tail 5 -Path $cl_cfg + } else { + Write-Warning "File $cl_cfg was NOT found!" + } - name: Smoke test run: |