Skip to content

Commit

Permalink
refactor: use root env activation script for intel toolchain (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Feb 2, 2025
1 parent 829c146 commit 2ccead5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ runs:
run: |
ver | findstr /i "10\.0\.17" && set VS2019INSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
ver | findstr /i "10\.0\.20" && set VS2022INSTALLDIR=C:\Program Files\Microsoft Visual Studio\2022\Enterprise
for /f "tokens=* usebackq" %%f in (`dir /b "%ONEAPI_ROOT%\compiler\" ^| findstr /V latest ^| sort`) do @set "LATEST=%%f"
:: this script fails when install location is not the default
call "%ONEAPI_ROOT%\compiler\%LATEST%\env\vars.bat"
call "%ONEAPI_ROOT%\setvars.bat"
set | findstr /c:"oneAPI" >> "%GITHUB_ENV%"
- name: Set outputs and env vars
Expand Down

0 comments on commit 2ccead5

Please sign in to comment.