From 3670856851f69fc43cb8e1d62ce760f6a2a1f266 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Wed, 1 Jun 2022 09:41:59 +0700 Subject: [PATCH] Update Visual Studio version - windows-latest now uses windows-2022 which has Visual Studio 17 2022. - Update cmake version from 3.15.4 to 3.23.2 which has generator for the newer version of Visual Studio. --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5bb3871..4d7527f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -97,7 +97,7 @@ jobs: if: steps.cache-submodules.outputs.cache-hit != 'true' uses: jwlawson/actions-setup-cmake@v1.9 with: - cmake-version: '3.15.4' + cmake-version: '3.23.2' use-32bit: ${{ matrix.bits == 32 && matrix.os == 'windows-latest' }} - name: Build libuv if: steps.cache-submodules.outputs.cache-hit != 'true' @@ -116,7 +116,7 @@ jobs: args="$args -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebugDLL" fi if [ "$BITS" -eq 32 -a "$OS" == "windows-latest" ]; then - cmake -G "Visual Studio 16 2019" -A Win32 -S $(pwd) -B "build" $args + cmake -G "Visual Studio 17 2022" -A Win32 -S $(pwd) -B "build" $args else mkdir build || true cd build