diff --git a/.github/workflows/test_suite_windows.yml b/.github/workflows/test_suite_windows.yml index 3cfb2321..d96712dd 100644 --- a/.github/workflows/test_suite_windows.yml +++ b/.github/workflows/test_suite_windows.yml @@ -69,11 +69,13 @@ jobs: shell: cmd run: | cd src + rem find torch location + for /f "tokens=2*" %%i in ('pip show torch ^| findstr /R "^Location"') do set torch_path=%%i cmake ^ -Bbuild ^ -G "NMake Makefiles" ^ -DCMAKE_Fortran_FLAGS="/fpscomp:logicals" ^ - -DCMAKE_PREFIX_PATH="C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages" ^ + -DCMAKE_PREFIX_PATH=%torch_path% ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_Fortran_COMPILER=ifx ^ -DCMAKE_C_COMPILER=icx ^ @@ -85,7 +87,7 @@ jobs: - name: Integration tests shell: cmd run: | - set PATH=C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages;%PATH% + for /f "tokens=2*" %%i in ('pip show torch ^| findstr /R "^Location"') do set torch_path=%%i set PATH=C:\Program Files (x86)\FTorch\bin;%PATH% - set PATH=C:\hostedtoolcache\windows\Python\3.12.7\x64\Lib\site-packages\torch\lib;%PATH% + set PATH=%torch_path%\torch\lib;%PATH% run_integration_tests.bat