Skip to content

Commit 056ce22

Browse files
committed
New test
1 parent de8827b commit 056ce22

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)