Skip to content

Commit f43d6b8

Browse files
Test_windows step to check if script exists before attempting to run it
1 parent 242f03d commit f43d6b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,11 @@ jobs:
364364
shell: pwsh
365365
run: |
366366
$script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
367-
&$script_path
367+
if (Test-Path $script_path) {
368+
&$script_path
369+
} else {
370+
Write-Warning "File $script_path was NOT found!"
371+
}
368372
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
369373
$cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
370374
Get-Content -Tail 5 -Path $cl_cfg

0 commit comments

Comments
 (0)