Skip to content

Commit f57c69b

Browse files
committed
fix(workflow): update OneAPI setvars.bat path handling for windows-sycl
1 parent 20e36d5 commit f57c69b

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,15 +346,18 @@ jobs:
346346
run: |
347347
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
348348
if "${{ matrix.name }}" == "windows-sycl" (
349-
if exist "%ONEAPI_ROOT%\\setvars.bat" (
350-
call "%ONEAPI_ROOT%\\setvars.bat"
349+
if exist "%ONEAPI_ROOT%\setvars.bat" (
350+
call "%ONEAPI_ROOT%\setvars.bat"
351351
) else (
352-
echo OneAPI setvars.bat not found at "%ONEAPI_ROOT%\\setvars.bat"
353-
dir "%ONEAPI_ROOT%"
352+
echo OneAPI setvars.bat not found at %ONEAPI_ROOT%\setvars.bat
353+
if exist "%ONEAPI_ROOT%" (
354+
dir "%ONEAPI_ROOT%"
355+
) else (
356+
echo ONEAPI_ROOT directory does not exist: %ONEAPI_ROOT%
357+
)
354358
)
355-
where icx
356-
where dpcpp
357-
echo PATH=%PATH%
359+
where icx 2^>nul ^|^| echo icx not found
360+
where dpcpp 2^>nul ^|^| echo dpcpp not found
358361
)
359362
set "PATH=%VCToolsInstallDir%bin\Hostx64\x64;%WindowsSdkBinPath%x64;%PATH%"
360363
set "PATH=%PATH:C:\msys64\usr\bin;=%"

0 commit comments

Comments
 (0)