File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,17 +65,17 @@ jobs:
6565 if : matrix.os == 'windows-2022'
6666 shell : cmd
6767 run : |
68- :: 1. Correct Argument Order: [arch] [winsdk] [-vcvars_ver]
69- :: This forces the use of the stable 22621 SDK
68+ :: 1. Initialize MSVC with the stable Windows SDK positional arguments
7069 call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64 10.0.22621.0 -vcvars_ver=14.29
7170
72- :: 2. Clear out the pre-set Runner variables
73- :: The GitHub Runner sets these to the 'broken' 26100 paths by default.
74- :: Clearing them lets 'vcvars' and 'swift' do their jobs properly.
75- set SDKROOT=
71+ :: 2. Explicitly set SDKROOT to the Swift Windows Platform SDK
72+ :: This ensures Swift finds the Standard Library while using the MSVC headers above
73+ set SDKROOT=C:\Users\runneradmin\AppData\Local\Programs\Swift\Platforms\6.0.3\Windows.platform\Developer\SDKs\Windows.sdk
74+
75+ :: 3. Clear SWIFTFLAGS to prevent interference with the build process
7676 set SWIFTFLAGS=
7777
78- :: 3 . Run the build
78+ :: 4 . Run the build
7979 bash ./build.sh
8080
8181 - name : Verify library was built
You can’t perform that action at this time.
0 commit comments