Skip to content

ci(runtime): build the GameInput shim into the windows artifact (CI-RUNTIME-SDL3-ARTIFACT) - #1641

Closed
slauko wants to merge 1 commit into
ProjectLeonida:mainfrom
slauko:ci-sdl3-artifact
Closed

slauko wants to merge 1 commit into
ProjectLeonida:mainfrom
slauko:ci-sdl3-artifact

Conversation

@slauko

@slauko slauko commented Nov 25, 2026

Copy link
Copy Markdown

Claimed in the coordination issue as: CI-RUNTIME-SDL3-ARTIFACT.

What and why

The runtime-windows artifact builds without SDL3 unless the Windows Configure step passes -DLEONIDA_SDL3_FETCH=ON. On a Windows host the installed GameInput.dll masks this (docs/gameinput.md's fallback path); on Wine there is no such DLL, so the retail executable stops at GameInputCreate before any D3D12 call. One line in the Windows Configure puts the GameInput shim (the pinned SDL3 3.4.20, gamepad-only, static) into every artifact.

No behaviour change for Windows hosts: an installed SDL3 is still preferred, and the pinned release is fetched only when none is found.

Tested

On the fork (RTX 3080 Ti, NVIDIA 595.112.07, Wine 11.17, retail 1.0.2.1 package, LEONIDA_D3D12=vulkan):

  • artifact built without the flag: --run stops at the title's GameInputCreate assert, 0 D3D12 calls;
  • artifact built with the flag: SDL 3.4.20 gamepads, the Xbox Series X pad is recognized (045e:0b12, player 1), and the boot proceeds (1,639 D3D12 calls before the next stop). Counts and call shapes only, no game data.

The build itself needs no game files; the boot check uses the retail package. The artifact grows by the shim (observed on the fork: ~5.7 MB to ~9 MB).

AI-assisted: yes.

Re-applied after the rebase onto current main: upstream's windows
artifact still builds without SDL3 (Windows hosts mask the GameInput
gap with their own GameInput.dll), so a Wine-side boot of the retail
exe stops at GameInputCreate again. -DLEONIDA_SDL3_FETCH=ON in the
windows Configure puts the shim back into the artifact.

(cherry picked from commit b8e0fe6)
(cherry picked from commit 149adbd)
@slauko

slauko commented Nov 25, 2026

Copy link
Copy Markdown
Author

Current-main confirmation: the flag is the difference

Artifact from fork run 45569356396 (head f81cf9092 = main 42537e7b6 + this one line; Windows build). Retail boot under Wine 11.17, RTX 3080 Ti (NVIDIA 595.112.07), retail 1.0.2.1:

An artifact built without the line stops at GameInputCreate with 0 D3D12 calls. This is the current-main evidence for the PR. Counts and call shapes only, no game data. AI-assisted.

@whoalin1

Copy link
Copy Markdown
Contributor

Independent verification: the one-line -DLEONIDA_SDL3_FETCH=ON in the windows job configure is correct — CMakeLists fetches pinned SDL3 3.4.20 (SHA256-pinned FetchContent, static gamepad-only) into gta6rt via gameinput.cpp; installed SDL3 still preferred so no behavior change on dev hosts. yaml.safe_load OK; test_no_game_data_workflow.py 3/3; the test_runtime_paths.py conformance-path failure reproduces identically on origin/main (pre-existing, fixed by #1673). AI-assisted verification.

@slauko slauko closed this by deleting the head repository Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants