Skip to content

Commit 986ad66

Browse files
committed
Check if cl.cfg exists before printing the lines from it
1 parent d99fa65 commit 986ad66

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,14 @@ jobs:
366366
} else {
367367
Write-Warning "File $script_path was NOT found!"
368368
}
369+
369370
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
370371
$cl_cfg="$env:CONDA_PREFIX\Library\bin\cl.cfg"
371-
Get-Content -Tail 5 -Path $cl_cfg
372+
if (Test-Path $cl_cfg) {
373+
Get-Content -Tail 5 -Path $cl_cfg
374+
} else {
375+
Write-Warning "File $cl_cfg was NOT found!"
376+
}
372377
373378
- name: Smoke test
374379
run: |

.github/workflows/cron-run-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,14 @@ jobs:
105105
} else {
106106
Write-Warning "File $script_path was NOT found!"
107107
}
108+
108109
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
109110
$cl_cfg="$env:CONDA_PREFIX\Library\bin\cl.cfg"
110-
Get-Content -Tail 5 -Path $cl_cfg
111+
if (Test-Path $cl_cfg) {
112+
Get-Content -Tail 5 -Path $cl_cfg
113+
} else {
114+
Write-Warning "File $cl_cfg was NOT found!"
115+
}
111116
112117
- name: Smoke test
113118
run: |

0 commit comments

Comments
 (0)