File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,22 +51,23 @@ jobs:
5151 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
5252 pip install pytest
5353
54- - name : Run build script
54+ - name : Run build script (Unix)
55+ if : matrix.os != 'windows-2022'
5556 shell : bash
56- env :
57- # Pin to a stable SDK version to avoid the UCRT cycle
58- WIN_SDK_VER : " 10.0.22621.0"
5957 run : |
60- if [[ "${{ matrix.os }}" == "windows-2022" ]]; then
61- # Construct the path to the specific Windows SDK
62- export SDKROOT="C:/Program Files (x86)/Windows Kits/10/Platforms/UAP/$(echo $WIN_SDK_VER)"
63- # Alternatively, pass the version directly to Swift via -Xcc
64- export SWIFTFLAGS="-Xcc -I\"C:/Program Files (x86)/Windows Kits/10/Include/$WIN_SDK_VER/ucrt\" -Xcc -I\"C:/Program Files (x86)/Windows Kits/10/Include/$WIN_SDK_VER/um\""
65- fi
66-
6758 chmod +x build.sh
6859 ./build.sh
6960
61+ - name : Run build script (Windows)
62+ if : matrix.os == 'windows-2022'
63+ shell : cmd
64+ run : |
65+ :: Set up the environment with the specific SDK and Toolset
66+ call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.29 -win10sdk=10.0.22621.0
67+
68+ : : Run the build script using the bash shell provided by Git for Windows
69+ bash ./build.sh
70+
7071 - name : Verify library was built
7172 shell : bash
7273 run : |
You can’t perform that action at this time.
0 commit comments