Skip to content

Commit 5a8e27d

Browse files
committed
Use Visual Studio 2022 for builds instead of 2019
1 parent a4cb417 commit 5a8e27d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.github/workflows/windows.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
pythonbuild:
1616
if: ${{ github.repository_owner == 'indygreg' || github.event_name != 'schedule' }}
17-
runs-on: 'windows-2019'
17+
runs-on: 'windows-2022'
1818
steps:
1919
- uses: actions/checkout@v4
2020

@@ -66,10 +66,7 @@ jobs:
6666
options: 'freethreaded+pgo'
6767

6868
needs: pythonbuild
69-
runs-on: 'windows-2019'
70-
env:
71-
# Workaround for https://github.com/actions/runner-images/issues/10819
72-
VCToolsRedistDir: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Redist\MSVC\14.29.30156'
69+
runs-on: 'windows-2022'
7370
steps:
7471
- uses: actions/checkout@v4
7572
with:
@@ -99,7 +96,8 @@ jobs:
9996
- name: Build
10097
shell: cmd
10198
run: |
102-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"isu py.exe -3.9 build-windows.py --python ${{ matrix.py }} --sh c:\cygwin\bin\sh.exe --options ${{ matrix.options }}
99+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"
100+
py.exe -3.9 build-windows.py --python ${{ matrix.py }} --sh c:\cygwin\bin\sh.exe --options ${{ matrix.options }}
103101
104102
- name: Validate Distribution
105103
run: |

cpython-windows/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@ def main() -> None:
18971897
parser.add_argument(
18981898
"--vs",
18991899
choices={"2019", "2022"},
1900-
default="2019",
1900+
default="2022",
19011901
help="Visual Studio version to use",
19021902
)
19031903
parser.add_argument(

0 commit comments

Comments
 (0)