Skip to content

Commit 2ccead5

Browse files
authored
refactor: use root env activation script for intel toolchain (#92)
1 parent 829c146 commit 2ccead5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

action.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ runs:
123123
run: |
124124
ver | findstr /i "10\.0\.17" && set VS2019INSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
125125
ver | findstr /i "10\.0\.20" && set VS2022INSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Enterprise
126-
for /f "tokens=* usebackq" %%f in (`dir /b "%ONEAPI_ROOT%\compiler\" ^| findstr /V latest ^| sort`) do @set "LATEST=%%f"
127-
:: this script fails when install location is not the default
128-
call "%ONEAPI_ROOT%\compiler\%LATEST%\env\vars.bat"
126+
call "%ONEAPI_ROOT%\setvars.bat"
129127
set | findstr /c:"oneAPI" >> "%GITHUB_ENV%"
130128
131129
- name: Set outputs and env vars

0 commit comments

Comments
 (0)