File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,18 +61,21 @@ jobs:
6161 if : matrix.os == 'windows-latest'
6262 shell : cmd
6363 run : |
64- :: 1. Load the Visual Studio tools
64+ :: 1. Load the VS Environment
6565 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
6666
67- :: 2. Set Paths
68- set "PATH=%GITHUB_WORKSPACE%\loop_to_python_api\dlibs\windows;%PATH%"
67+ :: 2. Set necessary Swift environment variables
6968 set "SDKROOT=C:\Users\runneradmin\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\SDKs\Windows.sdk"
69+ set "SWIFT_BIN=C:\Users\runneradmin\AppData\Local\Programs\Swift\Toolchains\5.10.1+Asserts\usr\bin"
7070
71- :: 3. Run Build with VERBOSE flag to see exactly why it's skipping
71+ :: 3. Explicitly add Swift and YOUR dlibs to the PATH
72+ set "PATH=%SWIFT_BIN%;%GITHUB_WORKSPACE%\loop_to_python_api\dlibs\windows;%PATH%"
73+
74+ :: 4. Run the build using the ABSOLUTE path to swift.exe
7275 echo Starting Fresh Swift Build...
73- swift build -c release -v
76+ "%SWIFT_BIN%\ swift.exe" build -c release -v
7477
75- :: 4. Verify build output
78+ :: 5. Locate the result
7679 dir /s .build\*.dll
7780
7881 - name : Verify library was built
You can’t perform that action at this time.
0 commit comments