Skip to content

fix(ci): pin Windows runner to windows-2022 for SDK compatibility#3860

Open
gtolontop wants to merge 2 commits intocitizenfx:masterfrom
gtolontop:fix/ci-windows-runner-sdk
Open

fix(ci): pin Windows runner to windows-2022 for SDK compatibility#3860
gtolontop wants to merge 2 commits intocitizenfx:masterfrom
gtolontop:fix/ci-windows-runner-sdk

Conversation

@gtolontop
Copy link

@gtolontop gtolontop commented Mar 11, 2026

Goal of this PR

Fix all Windows CI builds (FiveM, RedM, Server) failing with MSB8036: The Windows SDK version 10.0.22000.0 was not found since the windows-latest runner migrated to Windows Server 2025.

How is this PR achieving the goal

The windows-latest GitHub Actions runner label now resolves to Windows Server 2025, which does not include Windows SDK 10.0.22000.0 required by the build system (systemversion '10.0.22000.0' in code/premake5.lua).

This PR pins the Windows runner to windows-2022 which still includes the required SDK. This is a single-line change in ci_build.yml with zero impact on the build output.

Sources:

This PR applies to the following area(s)

CI/CD build pipeline

Successfully tested on

  • Verified that windows-2022 runner image includes Windows SDK 10.0.22000.0
  • No changes to build configuration, toolchain, or output

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

Fixes Windows CI builds failing on every PR since the windows-latest runner migration.

The windows-latest label now resolves to Windows Server 2025, which does not include Windows SDK 10.0.22000.0 required by the build. This causes all Windows CI builds to fail with MSB8036.
@github-actions github-actions bot added the triage Needs a preliminary assessment to determine the urgency and required action label Mar 11, 2026
@gtolontop gtolontop force-pushed the fix/ci-windows-runner-sdk branch from 7f2fc33 to bf2cca4 Compare March 11, 2026 21:33
@gtolontop
Copy link
Author

Why he don't want trigger the building test 😂

@gtolontop
Copy link
Author

Figured it out lol this PR can't be CI-tested because:

pr_opened.yml file filter excludes .github/ paths and breaks the compilation check entirely
The workflow uses pull_request_target, so it always runs from master, not from the PR branch :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Needs a preliminary assessment to determine the urgency and required action

1 participant