File tree 2 files changed +14
-4
lines changed 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ concurrency:
14
14
jobs :
15
15
pythonbuild :
16
16
if : ${{ github.repository_owner == 'indygreg' || github.event_name != 'schedule' }}
17
- runs-on : ' windows-2019 '
17
+ runs-on : ' windows-2022 '
18
18
steps :
19
19
- uses : actions/checkout@v4
20
20
66
66
options : ' freethreaded+pgo'
67
67
68
68
needs : pythonbuild
69
- runs-on : ' windows-2019 '
69
+ runs-on : ' windows-2022 '
70
70
steps :
71
71
- uses : actions/checkout@v4
72
72
with :
96
96
- name : Build
97
97
shell : cmd
98
98
run : |
99
- call "C:\Program Files (x86) \Microsoft Visual Studio\2019 \Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"
99
+ call "C:\Program Files\Microsoft Visual Studio\2022 \Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}"
100
100
py.exe -3.9 build-windows.py --python ${{ matrix.py }} --sh c:\cygwin\bin\sh.exe --options ${{ matrix.options }}
101
101
102
102
- name : Validate Distribution
Original file line number Diff line number Diff line change @@ -1424,6 +1424,16 @@ def build_cpython(
1424
1424
# The python.props file keys off MSBUILD, so it needs to be set.
1425
1425
os .environ ["MSBUILD" ] = str (msbuild )
1426
1426
1427
+ # Workaround for https://github.com/actions/runner-images/issues/10819
1428
+ if not os .environ .get ("VCToolsRedistDir" ):
1429
+ os .environ ["VCToolsRedistDir" ] = os .path .join (
1430
+ os .environ ["VCINSTALLDIR" ],
1431
+ "Redist" ,
1432
+ "MSVC" ,
1433
+ os .environ ["VCToolsVersion" ],
1434
+ "" ,
1435
+ )
1436
+
1427
1437
bzip2_archive = download_entry ("bzip2" , BUILD )
1428
1438
sqlite_archive = download_entry ("sqlite" , BUILD )
1429
1439
tk_bin_archive = download_entry (
@@ -1887,7 +1897,7 @@ def main() -> None:
1887
1897
parser .add_argument (
1888
1898
"--vs" ,
1889
1899
choices = {"2019" , "2022" },
1890
- default = "2019 " ,
1900
+ default = "2022 " ,
1891
1901
help = "Visual Studio version to use" ,
1892
1902
)
1893
1903
parser .add_argument (
You can’t perform that action at this time.
0 commit comments