From e8dac183c5707e95aef3e549e79633afed2a4ea6 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Tue, 29 Mar 2022 08:35:37 +0800 Subject: [PATCH] Fixes windows CI by using the valid virtual environments `windows-2019` The virtual-environments documents are at: https://github.com/actions/virtual-environments . Currently, the `windows-latest` == `windows-2022` We currently are using `Microsoft Visual Studio\2019` installed with `windows-2019` and that not installed in `windows-2022` Signed-off-by: Yonggang Luo --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2f7ca8b..9ee1b88 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: winbuild: name: Windows Build - runs-on: windows-latest + runs-on: windows-2019 strategy: fail-fast: false matrix: @@ -63,6 +63,7 @@ jobs: run: choco install ninja - name: Build shell: cmd + # vcvarsall.bat need explicit Visual Studio 2019 to be installed run: | set "HOME=%CD%" set CL_ARCH=${{ fromJson('{ "x86": "amd64_x86", "x64": "amd64" }')[matrix.arch] }}