CI: Add C compile step for gdextension_interface.h
#96408
Merged
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.
It has happened repeatedly that C++ code accidentally crept into the GDExtension C header, a notable example being use of the
bool
type, latest example being #96406.This change adds a CI step to check the header with a C-only compiler. I chose gcc without any flags, let me know if there's an invocation that would fit better.
Also, I put it as a separate job next to Godot CPP; maybe there's a better place.
This CI will fail until #96406 is merged.