@@ -97,11 +97,35 @@ jobs:
9797 call ftorch\Scripts\activate
9898 set TORCH_PATH=
9999 for /f "tokens=2*" %%i in ('pip show torch ^| findstr /R "^Location"') do set TORCH_PATH=%%i
100- set PATH=C:\Program Files (x86)\FTorch\bin;%PATH%
100+ set FTORCH_INSTALL_DIR=%TEMP%\ftorch-install
101+ set PATH=%FTORCH_INSTALL_DIR%\bin;%PATH%
101102 set PATH=%TORCH_PATH%\torch\lib;%PATH%
102103 cd build
103104 ctest --verbose --tests-regex example1
104105 ctest --verbose --tests-regex example2
105106 ctest --verbose --tests-regex example3
106107 ctest --verbose --tests-regex example4
107108 ctest --verbose --tests-regex example8
109+
110+ - name : Standalone SimpleNet example
111+ shell : cmd
112+ run : |
113+ call ftorch\Scripts\activate
114+ set TORCH_PATH=
115+ for /f "tokens=2*" %%i in ('pip show torch ^| findstr /R "^Location"') do set TORCH_PATH=%%i
116+ set FTORCH_INSTALL_DIR=%TEMP%\ftorch-install
117+ set PATH=%FTORCH_INSTALL_DIR%\bin;%PATH%
118+ set PATH=%TORCH_PATH%\torch\lib;%PATH%
119+ set EXAMPLE_BUILD_DIR=examples\2_SimpleNet\build
120+ if not exist %EXAMPLE_BUILD_DIR% mkdir %EXAMPLE_BUILD_DIR%
121+ cd %EXAMPLE_BUILD_DIR%
122+ cmake .. ^
123+ -G "NMake Makefiles" ^
124+ -DCMAKE_Fortran_COMPILER=ifx ^
125+ -DCMAKE_Fortran_FLAGS="/fpscomp:logicals" ^
126+ -DPython_EXECUTABLE=%python% ^
127+ -DCMAKE_BUILD_TYPE=Release ^
128+ -DCMAKE_PREFIX_PATH=%FTORCH_INSTALL_DIR%;%TORCH_PATH% ^
129+ -DCMAKE_BUILD_TESTS=TRUE
130+ cmake --build .
131+ ctest -V
0 commit comments