diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6410b7cb..091ad011 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -14,7 +14,7 @@ concurrency: jobs: pythonbuild: if: ${{ github.repository_owner == 'indygreg' || github.event_name != 'schedule' }} - runs-on: 'windows-2019' + runs-on: 'windows-2022' steps: - uses: actions/checkout@v4 @@ -66,7 +66,7 @@ jobs: options: 'freethreaded+pgo' needs: pythonbuild - runs-on: 'windows-2019' + runs-on: 'windows-2022' steps: - uses: actions/checkout@v4 with: @@ -96,7 +96,7 @@ jobs: - name: Build shell: cmd run: | - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}" + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\${{ matrix.vcvars }}" py.exe -3.9 build-windows.py --python ${{ matrix.py }} --sh c:\cygwin\bin\sh.exe --options ${{ matrix.options }} - name: Validate Distribution diff --git a/cpython-windows/build.py b/cpython-windows/build.py index 7f3be23d..b3d61272 100644 --- a/cpython-windows/build.py +++ b/cpython-windows/build.py @@ -1887,7 +1887,7 @@ def main() -> None: parser.add_argument( "--vs", choices={"2019", "2022"}, - default="2019", + default="2022", help="Visual Studio version to use", ) parser.add_argument( diff --git a/src/validation.rs b/src/validation.rs index 765745b4..f9c9ac71 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -107,6 +107,7 @@ const PE_ALLOWED_LIBRARIES: &[&str] = &[ "USERENV.dll", "VERSION.dll", "VCRUNTIME140.dll", + "VCRUNTIME140_1.dll", "WINMM.dll", "WS2_32.dll", // Our libraries.