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,14 +62,17 @@ jobs:
6262 if : matrix.os == 'windows-2022'
6363 shell : cmd
6464 run : |
65- :: Initialize the environment with the 'stable' SDK and Toolset
66- :: This fixes the cyclic dependency and the 'kernel32.lib' error
67- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.29 -win10sdk= 10.0.22621.0
65+ :: 1. Correct Argument Order: [arch] [winsdk] [-vcvars_ver]
66+ :: This forces the use of the stable 22621 SDK
67+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64 10.0.22621.0 -vcvars_ver=14.29
6868
69- :: Verify Swift can see the environment
70- swift --version
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=
73+ set SWIFTFLAGS=
7174
72- :: Run your bash script using the Git-Bash included in the runner
75+ :: 3. Run the build
7376 bash ./build.sh
7477
7578 - name : Verify library was built
You can’t perform that action at this time.
0 commit comments