Automate gamepad mapping generation via Github Action - #2887
Open
crocdialer wants to merge 2 commits into
Open
crocdialer wants to merge 2 commits into
crocdialer wants to merge 2 commits into
Conversation
- SDL_GameControllerDB was transferred from gabomdq/ to mdqinc/ - the old path resolves only through github's transfer redirect, which stops working if a repo is ever created at the old location
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
src/mappings.his generated, but regeneration is manual —update_mappingsonly runs whensomeone remembers. The last commit that actually changed the data is afa78b4 (2021-08-01).
The practical result is that devices needing no new code, only a newer database, report
glfwJoystickIsGamepad() == false: master carries 885 unique GUIDs against ~1765 upstreamentries the parser can consume.
This adds a scheduled workflow that runs the existing
update_mappingscommand and opens aPR when the regenerated file differs. Nothing about the current design changes: no network
access during a normal build,
mappings.hstays committed, and every update is still areviewed PR. Only the trigger becomes automatic.
workflow_dispatchpermissionsscoped tocontents: write+pull-requests: write