From d839bd697d5e4ad96b6f653af67e1226b650c85f Mon Sep 17 00:00:00 2001 From: NovaRain Date: Mon, 7 Jul 2025 11:11:22 +0800 Subject: [PATCH] Updated GitHub Actions setup - Switch to Windows 2022 runner - Install v140 toolset via Chocolatey (for some reasons trying to add related components to VS2022 would hang the workflow.) --- .github/workflows/build.yml | 2 +- action.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f36ae2b4..576f5bc2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ on: jobs: Build: name: sfall - runs-on: windows-2019 + runs-on: windows-2022 steps: - name: Clone sfall diff --git a/action.yml b/action.yml index 72a5e29d..4a6c3468 100644 --- a/action.yml +++ b/action.yml @@ -85,6 +85,17 @@ runs: echo "dir=$(cygpath --windows "$DXSDK_DIR/DXSDK_Jun2010/")" >> $GITHUB_OUTPUT shell: bash + # Install VS 2015 C++ build tools and WinXP Support components via Chocolatey + - name: Prepare VS 2015 C++ build tools + id: vs2015_tools + run: | + echo "::group::Prepare VS 2015 C++ build tools" + + choco install visualstudio2017buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Workload.MSBuildTools --add Microsoft.VisualStudio.Component.VC.140 --add Microsoft.VisualStudio.Component.WinXP --add Microsoft.VisualStudio.ComponentGroup.NativeDesktop.WinXP --passive" + + echo "::endgroup::" + shell: bash + # MSBuild is not in PATH on Windows machines # Using $GITHUB_OUTPUT to make sure workflow environment remains unchanged - name: Prepare MSBuild