Skip to content

ci: build and test the libraries with MSVC - #78

Open
CaseReed wants to merge 1 commit into
Dark3581:mainfrom
CaseReed:ci/msvc-job
Open

CaseReed wants to merge 1 commit into
Dark3581:mainfrom
CaseReed:ci/msvc-job

Conversation

@CaseReed

Copy link
Copy Markdown
Contributor

What

Adds a windows-msvc job to the Build workflow, as agreed in the review of #38: it configures, builds and runs CTest with MSVC next to the existing MinGW job, so a change that only breaks MSVC (as #43 did) fails on the pull request instead of on main.

  • Runner windows-2022, pinned on purpose. windows-2025 currently resolves to the windows-2025-vs2026 image and compiles with MSVC 19.52 (Visual Studio 2026); docs/dev/BUILD.md documents MSVC 2022, and the breaks fixed in build(d3d12_x): compile the libraries with MSVC again #38 and build(d3d12_x): use the macro-safe min and max in the code added by #43 #45 were Visual Studio 2022 ones.
  • ilammy/msvc-dev-cmd@v1 opens the x64 developer environment (a third-party action, like msys2/setup-msys2); Ninja and CMake come from the image.
  • Python 3.12 with jsonschema, as in the relinker job, so the Python-driven tests run instead of being skipped.
  • No artifact upload; the windows job and its artifact are unchanged.
  • CONTRIBUTING.md: the CI line now says the Windows build runs with MinGW and with MSVC.

The job only gates merges once windows-msvc is added to the required checks, if main uses them.

Tested

On my fork, same commit content, workflow_dispatch on the branch: https://github.com/CaseReed/AnyBox/actions/runs/45122015586

  • windows-msvc: image windows-2022, MSVC 19.44.35230, Windows SDK 10.0.26100 (so ab_gameinput.dll links). Full build, CTest 73/73 passed with pipeline_probe skipped, the same count and the same skip as the MinGW job. About 2 min 30, the same as the MinGW job.
  • windows, relinker (ubuntu-latest), relinker (macos-latest): still pass.
  • An earlier run on windows-2025 also passed, with MSVC 19.52: https://github.com/CaseReed/AnyBox/actions/runs/45121660644
  • Locally: current main builds and passes 73/73 with Visual Studio 2022 (MSVC 19.38); python tools/check_conventions.py and python tools/debt_fold.py --check pass.

Not tested: that the job turns red on a real MSVC-only regression (no deliberate break was pushed); it relies on #38 and #45 having failed with this compiler family. The Node 20 deprecation warning shown for actions/checkout@v4 and actions/setup-python@v5 is left alone, since the rest of the file uses the same versions.

Self-review: an independent pass over the diff (what the MSVC build needs from CMake, the concurrency group, other workflows that reference job names, the commit rules) found the Visual Studio 2026 image issue above, fixed before opening this PR, and nothing else.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • python tools/check_conventions.py passes (no comments in code, one declaration per export, Conventional Commit subjects)
  • Unimplemented paths stop (AbxNotImplemented / AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragment (no code changed)
  • Known gaps added, changed or removed through docs/dev/debt/changes/<branch>.md (none changed)
  • Generic behaviour, not specific to one title
  • No game files, keys, notes or logs added to the repository
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • Source of behaviour: n/a (CI); GitHub runner image logs of the runs above
  • AI-assisted: yes

🤖 Generated with Claude Code

@github-actions github-actions Bot added the ci .github label Nov 23, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

ci .github

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant