Skip to content

Commit b85a39f

Browse files
committed
fix(workflow): uncomment and format OneAPI setup for windows-sycl
1 parent b55915b commit b85a39f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -345,17 +345,17 @@ jobs:
345345
shell: cmd
346346
run: |
347347
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
348-
# if "${{ matrix.name }}" == "windows-sycl" (
349-
# if exist "%ONEAPI_ROOT%\setvars.bat" (
350-
# call "%ONEAPI_ROOT%\setvars.bat"
351-
# ) else (
352-
# echo OneAPI setvars.bat not found at %ONEAPI_ROOT%\setvars.bat
353-
# dir "%ONEAPI_ROOT%"
354-
# )
355-
# where icx
356-
# where dpcpp
357-
# echo PATH=%PATH%
358-
# )
348+
if "${{ matrix.name }}" == "windows-sycl" (
349+
if exist "%ONEAPI_ROOT%\setvars.bat" (
350+
call "%ONEAPI_ROOT%\setvars.bat"
351+
) else (
352+
echo OneAPI setvars.bat not found at %ONEAPI_ROOT%\setvars.bat
353+
dir "%ONEAPI_ROOT%"
354+
)
355+
where icx
356+
where dpcpp
357+
echo PATH=%PATH%
358+
)
359359
set "PATH=%VCToolsInstallDir%bin\Hostx64\x64;%WindowsSdkBinPath%x64;%PATH%"
360360
set "PATH=%PATH:C:\msys64\usr\bin;=%"
361361
set "PATH=%PATH:C:\msys64\mingw64\bin;=%"

0 commit comments

Comments
 (0)