CI: add C compile step for gdextension_interface.h
It has happened repeatedly that C++ code accidentally crept into the GDExtension C header, a notable example being use of the `bool` type. This change adds a CI step to check the header with a C-only compiler.
This commit is contained in:
parent
7c383767a2
commit
c89a57d4c2
|
@ -56,3 +56,13 @@ jobs:
|
|||
cd godot-cpp/test
|
||||
scons target=template_debug dev_build=yes
|
||||
cd ../..
|
||||
|
||||
gdextension-c-compile:
|
||||
runs-on: "ubuntu-20.04"
|
||||
name: "Check GDExtension header with a C compiler"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Run C compiler on gdextension_interface.h"
|
||||
run: |
|
||||
gcc -c core/extension/gdextension_interface.h
|
||||
|
|
Loading…
Reference in New Issue