From 5b32d716fa03ed58faa47fdd913fabe1cda4a9e9 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Wed, 9 Feb 2022 21:44:37 +0000 Subject: [PATCH] github workflow: Support windows-2022 The provided host for windows-latest is migrating across from windows-2019 to windows-2022 on github. This allows things to be built on a windows-2022 system. --- .github/workflows/main.yml | 2 +- scripts/msbuild.sln.cmd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 195888ec..c699a6f9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,7 +112,7 @@ jobs: run: | make -C examples/${{matrix.OS}} ms-build: - runs-on: windows-latest + runs-on: windows-2022 steps: - uses: actions/checkout@v2 diff --git a/scripts/msbuild.sln.cmd b/scripts/msbuild.sln.cmd index 5e0eb3f2..e6efb354 100644 --- a/scripts/msbuild.sln.cmd +++ b/scripts/msbuild.sln.cmd @@ -8,7 +8,7 @@ if exist NoTLS rd /s /q NoTLS cd .. -"%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe" ./win32/libcoap.sln /p:Configuration=NoTLS /p:Platform=x64 /warnaserror +"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe" ./win32/libcoap.sln /p:Configuration=NoTLS /p:Platform=x64 /warnaserror :exit popd