From 848728b9f8f277e196a7e4e1afb61474c4869d2e Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Wed, 24 Apr 2024 16:07:49 -0400 Subject: [PATCH] fix(oneapi): use root environment activation script --- action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 5f2f627..67eb882 100644 --- a/action.yml +++ b/action.yml @@ -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