Repository navigation
CI: build and test GameInput on Windows - #7113
Barbital11111 wants to merge 1 commit into
Conversation
|
I tested I ran The separate virtual-joystick I then unplugged USB and connected the same controller over Bluetooth LE. Windows reported one connected Bluetooth controller and no wired Xbox controller before and after the probes. The same build identified it as |
|
Patch for the one thing this PR leaves out, if you want it: the job can stay green with the test disabled again after the flag is removed or the target stops building. It applies to It goes after "List tests for Wine", which already writes Checked while detached at diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml
index e2c34d062..0e82dbe8f 100644
--- a/.github/workflows/runtime.yml
+++ b/.github/workflows/runtime.yml
@@ -269,6 +269,23 @@ jobs:
run: |
ctest --test-dir runtime/build --show-only=json-v1 > runtime/build/ctest.json
cygpath -m "$GITHUB_WORKSPACE" > runtime/build/windows-root.txt
+ # The shim is built only when SDL3 was found. This checks the built tree, so the test cannot quietly
+ # return to "Not Run (Disabled)" with the job green.
+ - name: Verify the GameInput shim and its test
+ shell: pwsh
+ run: |
+ $exe = 'runtime/build/gameinput_test.exe'
+ if (!(Test-Path -LiteralPath $exe -PathType Leaf)) {
+ throw "The GameInput shim was not built: $exe is missing (SDL3 was not available)"
+ }
+ $tests = (Get-Content -LiteralPath 'runtime/build/ctest.json' -Raw | ConvertFrom-Json).tests
+ $gameinput = @($tests | Where-Object { $_.name -eq 'gameinput' })
+ if ($gameinput.Count -ne 1) {
+ throw "CTest lists $($gameinput.Count) tests named 'gameinput', expected exactly one"
+ }
+ if (@($gameinput[0].properties | Where-Object { $_.name -eq 'DISABLED' }).Count -gt 0) {
+ throw "The 'gameinput' test is DISABLED: the GameInput shim was not built, so it was not tested"
+ }
- name: Upload the Windows build for Wine
id: upload-wine-artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2Your call whether it is worth it; without it this PR still makes AI-assisted. |
|
The cache now has its own PR: #7882, It is one file and independent of your branch: job env Until your flag is in, the paths do not exist and the cache saves nothing; after it, the windows job stops rebuilding all of SDL3 (a C build, and the job's sccache launcher is CXX-only) on every push. Nothing was pushed to your branch and the guard patch above is unchanged - that one and this remain separable. AI-assisted. |
Fold the three versions into one assignment instead of a temporary plus an inline replace, and drop the ItsNotRexed#7113 note from the workflow comment so it does not outlive the dependency. The key segment is unchanged: version=19.51.36260.0-cmake-version-4.3.1-msvc1-1.13.2, twice. AI-assisted.
Coordination claim · Original finding.
Enable
LEONIDA_SDL3_FETCHin the Windows Runtime job. A clean runner can use the existing SHA-256-pinned SDL 3.4.20 static build, which adds the realgameinputCTest to the normal Windows test step and compiles the manualgameinput_probetarget.Validation
ctest -N -R '^gameinput$'listedgameinput (Disabled).cmake --build <build> --target gameinput_test gameinput_probelinked both targets.ctest --test-dir <build> --output-on-failure --no-tests=error -R '^gameinput$'passed 1/1 in 3.4 s using virtual joysticks.git diff --checkand the changed-file no-game-data check passed.test_runtime_paths.pyran 5 tests with one existing path-filter failure (tools/replace_retry.py, tracked by CI: the runtime workflow's path filter lists tools/replace_retry.py (test_runtime_paths red since #2721) #7029).CPU-only local validation. GitHub-hosted Windows and Wine execution and physical controller behavior remain unverified. AI-assisted (Codex).