mirror of
https://github.com/godotengine/godot.git
synced 2024-11-10 06:03:09 +00:00
CI: Improve godot-cpp
actions
This commit is contained in:
parent
694d3c2930
commit
593744b733
57
.github/workflows/godot_cpp_test.yml
vendored
57
.github/workflows/godot_cpp_test.yml
vendored
@ -19,51 +19,46 @@ jobs:
|
|||||||
name: Build and test Godot CPP
|
name: Build and test Godot CPP
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
sparse-checkout: .github
|
||||||
|
|
||||||
|
- name: Checkout godot-cpp
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
repository: godotengine/godot-cpp
|
||||||
|
ref: ${{ env.GODOT_CPP_BRANCH }}
|
||||||
|
path: godot-cpp
|
||||||
|
|
||||||
- name: Setup Python and SCons
|
- name: Setup Python and SCons
|
||||||
uses: ./.github/actions/godot-deps
|
uses: ./.github/actions/godot-deps
|
||||||
|
|
||||||
# Checkout godot-cpp
|
- name: Setup GCC problem matcher
|
||||||
- name: Checkout godot-cpp
|
uses: ammaraskar/gcc-problem-matcher@master
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
repository: godotengine/godot-cpp
|
|
||||||
ref: ${{ env.GODOT_CPP_BRANCH }}
|
|
||||||
submodules: recursive
|
|
||||||
path: godot-cpp
|
|
||||||
|
|
||||||
# Download generated API dump
|
|
||||||
- name: Download GDExtension interface and API dump
|
- name: Download GDExtension interface and API dump
|
||||||
uses: ./.github/actions/download-artifact
|
uses: ./.github/actions/download-artifact
|
||||||
with:
|
with:
|
||||||
name: godot-api-dump
|
name: godot-api-dump
|
||||||
path: ./godot-api
|
path: ./godot-cpp/gdextension
|
||||||
|
|
||||||
# Extract and override existing files with generated files
|
# TODO: Enable caching when godot-cpp has proper cache limiting.
|
||||||
- name: Extract GDExtension interface and API dump
|
|
||||||
run: |
|
|
||||||
cp -f godot-api/gdextension_interface.h godot-cpp/gdextension/
|
|
||||||
cp -f godot-api/extension_api.json godot-cpp/gdextension/
|
|
||||||
|
|
||||||
# TODO: Add caching to the SCons build and store it for CI via the godot-cache
|
# - name: Restore Godot build cache
|
||||||
# action.
|
# uses: ./.github/actions/godot-cache-restore
|
||||||
|
# with:
|
||||||
|
# cache-name: godot-cpp
|
||||||
|
# continue-on-error: true
|
||||||
|
|
||||||
# Build godot-cpp test extension
|
|
||||||
- name: Build godot-cpp test extension
|
- name: Build godot-cpp test extension
|
||||||
run: |
|
env: # Keep synced with godot-build.
|
||||||
cd godot-cpp/test
|
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
|
||||||
scons target=template_debug dev_build=yes
|
SCONS_CACHE_LIMIT: 7168
|
||||||
cd ../..
|
run: scons --directory=./godot-cpp/test target=template_debug dev_build=yes verbose=yes
|
||||||
|
|
||||||
gdextension-c-compile:
|
# - name: Save Godot build cache
|
||||||
runs-on: 'ubuntu-20.04'
|
# uses: ./.github/actions/godot-cache-save
|
||||||
name: 'Check GDExtension header with a C compiler'
|
# with:
|
||||||
steps:
|
# cache-name: godot-cpp
|
||||||
- uses: actions/checkout@v4
|
# continue-on-error: true
|
||||||
|
|
||||||
- name: 'Run C compiler on gdextension_interface.h'
|
|
||||||
run: |
|
|
||||||
gcc -c core/extension/gdextension_interface.h
|
|
||||||
|
4
.github/workflows/static_checks.yml
vendored
4
.github/workflows/static_checks.yml
vendored
@ -57,3 +57,7 @@ jobs:
|
|||||||
- name: Class reference schema checks
|
- name: Class reference schema checks
|
||||||
run: |
|
run: |
|
||||||
xmllint --noout --schema doc/class.xsd doc/classes/*.xml modules/*/doc_classes/*.xml platform/*/doc_classes/*.xml
|
xmllint --noout --schema doc/class.xsd doc/classes/*.xml modules/*/doc_classes/*.xml platform/*/doc_classes/*.xml
|
||||||
|
|
||||||
|
- name: Run C compiler on `gdextension_interface.h`
|
||||||
|
run: |
|
||||||
|
gcc -c core/extension/gdextension_interface.h
|
||||||
|
Loading…
Reference in New Issue
Block a user