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