ci: build and test the libraries with MSVC #78

Closed
opened 2026-11-26 19:18:02 +00:00 by github-bot · 0 comments
Owner

@⁠CaseReed on GitHub · 2026-11-23 08:22 UTC · original

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 #38 and #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

Pull request details or commits were not available from GitHub; kept as an issue.

**@⁠CaseReed** on GitHub · 2026-11-23 08:22 UTC · [original](https://github.com/Dark3581/AnyBox/pull/78) ### 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 #38 and #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 <!-- Rules behind each item: CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] `python tools/check_conventions.py` passes (no comments in code, one declaration per export, Conventional Commit subjects) - [x] Unimplemented paths stop (`AbxNotImplemented` / `AbxUnsupported`); silent stubs are listed under Silent stubs through a debt fragment (no code changed) - [x] Known gaps added, changed or removed through `docs/dev/debt/changes/<branch>.md` (none changed) - [x] Generic behaviour, not specific to one title - [x] No game files, keys, notes or logs added to the repository - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] Source of behaviour: n/a (CI); GitHub runner image logs of the runs above - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) *Pull request details or commits were not available from GitHub; kept as an issue.*
github-bot 2026-11-26 19:18:02 +00:00
  • closed this issue
  • added the
    ci
    label
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 19:18:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Dark3581--AnyBox#78
No description provided.