feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
30
engine/.github/actions/clangd-tidy/action.yml
vendored
Normal file
30
engine/.github/actions/clangd-tidy/action.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name: clangd-tidy
|
||||
description: Setup and run clangd-tidy on relevant files
|
||||
|
||||
inputs:
|
||||
changed-files:
|
||||
description: A pre-filtered list of changed files.
|
||||
required: true
|
||||
type: string
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Setup clangd-tidy
|
||||
shell: sh
|
||||
run: |
|
||||
echo "::group::Prerequisite checks"
|
||||
if [ ! -f "compile_commands.json" ]; then
|
||||
echo "::error::clangd-tidy checker requires a compilation database to function"
|
||||
exit 1
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Installing clangd-tidy"
|
||||
# Don't know which python we're using, so just access the global scope.
|
||||
python -m pip install clangd clangd-tidy clang-tidy==22.1.7
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "::group::Running clangd-tidy"
|
||||
clangd-tidy ${{ inputs.changed-files }}
|
||||
echo "::endgroup::"
|
||||
|
|
@ -14,7 +14,7 @@ runs:
|
|||
using: composite
|
||||
steps:
|
||||
- name: Download Godot Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v8
|
||||
with:
|
||||
name: ${{ inputs.name }}
|
||||
path: ${{ inputs.path }}
|
||||
|
|
|
|||
33
engine/.github/actions/godot-compat-test/action.yml
vendored
Normal file
33
engine/.github/actions/godot-compat-test/action.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
name: Godot hash compatibility test
|
||||
description: Check if methods with given hashes used by the older GDExtensions still can be loaded with given Godot version.
|
||||
|
||||
inputs:
|
||||
bin:
|
||||
description: Path to the Godot binary.
|
||||
required: true
|
||||
type: string
|
||||
reftags:
|
||||
description: Reference tags of Godot versions to check (comma separated).
|
||||
required: true
|
||||
type: string
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Extract GDExtension interface
|
||||
shell: sh
|
||||
run: |
|
||||
${{ inputs.bin }} --headless --dump-gdextension-interface
|
||||
mkdir tests/compatibility_test/src/deps/
|
||||
mv gdextension_interface.h tests/compatibility_test/src/deps/
|
||||
|
||||
- name: Build minimal GDExtension
|
||||
shell: sh
|
||||
run: scons --directory=./tests/compatibility_test
|
||||
|
||||
- name: Download reference GDExtension API JSON and try to load it
|
||||
shell: sh
|
||||
env:
|
||||
GODOT4_BIN: ${{ inputs.bin }}
|
||||
REFTAGS: ${{ inputs.reftags }}
|
||||
run: ./tests/compatibility_test/run_compatibility_test.py
|
||||
|
|
@ -22,7 +22,7 @@ runs:
|
|||
using: composite
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
repository: godotengine/godot-cpp
|
||||
|
|
|
|||
55
engine/.github/actions/godot-project-export/action.yml
vendored
Normal file
55
engine/.github/actions/godot-project-export/action.yml
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
name: Export Godot project
|
||||
description: Export a test Godot project.
|
||||
|
||||
inputs:
|
||||
bin:
|
||||
description: The path to the Godot executable
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Import resources and export project
|
||||
shell: sh
|
||||
run: |
|
||||
git clone --depth=1 https://github.com/godotengine/godot-tests.git /tmp/godot-tests
|
||||
|
||||
echo "Exporting project for Linux (PCK)"
|
||||
${{ inputs.bin }} --headless --path /tmp/godot-tests/tests/test_project/ --export-pack "Linux" /tmp/test_project.pck 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
echo "Exporting project for Linux (ZIP)"
|
||||
${{ inputs.bin }} --headless --path /tmp/godot-tests/tests/test_project/ --export-pack "Linux" /tmp/test_project.zip 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
echo "Exporting project for Linux as dedicated server (PCK)"
|
||||
${{ inputs.bin }} --headless --path /tmp/godot-tests/tests/test_project/ --export-pack "Linux Server" /tmp/test_project_server.pck 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
- name: Run project files from folder
|
||||
shell: sh
|
||||
run: |
|
||||
xvfb-run ${{ inputs.bin }} --path /tmp/godot-tests/tests/test_project/ --language fr --resolution 64x64 --write-movie /tmp/test_project_folder.png --quit 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
${{ inputs.bin }} --headless --path /tmp/godot-tests/tests/test_project/ --quit 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
- name: Run exported project PCK/ZIP
|
||||
shell: sh
|
||||
run: |
|
||||
xvfb-run ${{ inputs.bin }} --main-pack /tmp/test_project.pck --language fr --resolution 64x64 --write-movie /tmp/test_project_pck.png --quit 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
xvfb-run ${{ inputs.bin }} --main-pack /tmp/test_project.zip --language fr --resolution 64x64 --write-movie /tmp/test_project_zip.png --quit 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
# Headless mode is implied for dedicated server PCKs.
|
||||
${{ inputs.bin }} --main-pack /tmp/test_project_server.pck --quit 2>&1 | tee log.txt || true
|
||||
GODOT_CHECK_CI_LOG_ALL_ERRORS=1 misc/scripts/check_ci_log.py log.txt
|
||||
|
||||
echo "Checking whether video output from project folder and exported project match..."
|
||||
md5sum /tmp/test_project*.png | md5sum --check
|
||||
|
||||
echo "Checking whether audio output from project folder and exported project match..."
|
||||
md5sum /tmp/test_project*.wav | md5sum --check
|
||||
Loading…
Add table
Add a link
Reference in a new issue