feat: updated engine
This commit is contained in:
parent
cbe99774ff
commit
f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions
12
engine/.github/CODEOWNERS
vendored
12
engine/.github/CODEOWNERS
vendored
|
|
@ -40,7 +40,8 @@
|
|||
/drivers/vulkan/ @godotengine/rendering
|
||||
|
||||
## OS
|
||||
/drivers/apple*/ @godotengine/macos
|
||||
/drivers/apple/ @godotengine/macos @godotengine/ios
|
||||
/drivers/apple_embedded/ @godotengine/ios
|
||||
/drivers/unix/ @godotengine/linux-bsd
|
||||
/drivers/windows/ @godotengine/windows
|
||||
|
||||
|
|
@ -113,7 +114,6 @@
|
|||
/modules/hdr/ @godotengine/asset-pipeline
|
||||
/modules/jpg/ @godotengine/asset-pipeline
|
||||
/modules/ktx/ @godotengine/asset-pipeline
|
||||
/modules/squish/ @godotengine/asset-pipeline
|
||||
/modules/svg/ @godotengine/asset-pipeline
|
||||
/modules/tga/ @godotengine/asset-pipeline
|
||||
/modules/tinyexr/ @godotengine/asset-pipeline
|
||||
|
|
@ -147,6 +147,10 @@
|
|||
/modules/meshoptimizer/ @godotengine/rendering
|
||||
/modules/raycast/ @godotengine/rendering
|
||||
/modules/vhacd/ @godotengine/rendering
|
||||
/modules/visual_shader/ @godotengine/shaders
|
||||
/modules/visual_shader/doc_classes/ @godotengine/shaders @godotengine/documentation
|
||||
/modules/visual_shader/editor/ @godotengine/shaders @godotengine/editor
|
||||
/modules/visual_shader/tests/ @godotengine/shaders @godotengine/tests
|
||||
/modules/xatlas_unwrap/ @godotengine/rendering
|
||||
|
||||
## Scripting
|
||||
|
|
@ -158,7 +162,7 @@
|
|||
/modules/jsonrpc/tests/ @godotengine/gdscript @godotengine/network @godotengine/tests
|
||||
/modules/mono/ @godotengine/dotnet
|
||||
/modules/mono/doc_classes/ @godotengine/dotnet @godotengine/documentation
|
||||
/modules/mono/editor/ @godotengine/dotnet @godotengine/script-editor
|
||||
/modules/mono/editor/ @godotengine/dotnet @godotengine/editor
|
||||
|
||||
## Text
|
||||
/modules/freetype/ @godotengine/buildsystem
|
||||
|
|
@ -187,6 +191,7 @@
|
|||
/modules/gridmap/ @godotengine/3d-nodes
|
||||
/modules/gridmap/doc_classes/ @godotengine/3d-nodes @godotengine/documentation
|
||||
/modules/gridmap/editor/ @godotengine/3d-nodes @godotengine/editor
|
||||
/modules/gridmap/tests/ @godotengine/3d-nodes @godotengine/tests
|
||||
/modules/navigation_2d/ @godotengine/navigation
|
||||
/modules/navigation_2d/editor/ @godotengine/navigation @godotengine/editor
|
||||
/modules/navigation_3d/ @godotengine/navigation
|
||||
|
|
@ -252,7 +257,6 @@
|
|||
/scene/resources/shader* @godotengine/shaders
|
||||
/scene/resources/skeleton* @godotengine/animation
|
||||
/scene/resources/text_* @godotengine/gui-nodes
|
||||
/scene/resources/visual_shader* @godotengine/shaders
|
||||
/scene/theme/ @godotengine/gui-nodes
|
||||
|
||||
# Servers
|
||||
|
|
|
|||
18
engine/.github/PULL_REQUEST_TEMPLATE.md
vendored
18
engine/.github/PULL_REQUEST_TEMPLATE.md
vendored
|
|
@ -1,8 +1,18 @@
|
|||
<!--
|
||||
Please target the `master` branch in priority.
|
||||
Please target the `master` branch. We will take care of backporting relevant fixes to older versions.
|
||||
|
||||
Relevant fixes are cherry-picked for stable branches as needed by maintainers.
|
||||
Before submitting, please read our checklist for contributors:
|
||||
https://contributing.godotengine.org/en/latest/engine/introduction.html#checklist-for-new-contributors
|
||||
|
||||
To speed up the contribution process and avoid CI errors, please set up pre-commit hooks locally:
|
||||
https://contributing.godotengine.org/en/latest/engine/guidelines/code_style.html
|
||||
Use of AI must be disclosed and should include a description of how it was used.
|
||||
-->
|
||||
|
||||
## What problem(s) does this PR solve?
|
||||
|
||||
- Closes #
|
||||
|
||||
## Additional information
|
||||
|
||||
<!--
|
||||
Provide additional information and explanation of your PR, including areas that you are uncertain of or require special attention from reviewers. For examples, please read our pull request guidelines: https://contributing.godotengine.org/en/latest/pull_requests/pull_request_guidelines.html#explain-your-contributions
|
||||
-->
|
||||
|
|
|
|||
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
|
||||
30
engine/.github/changed_files.yml
vendored
Normal file
30
engine/.github/changed_files.yml
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# We lack a convenient means of gathering *all* the changes when specializations are passed, so
|
||||
# a catch-all variable is the easiest workaround.
|
||||
everything:
|
||||
- "**"
|
||||
|
||||
# Determines if build actions should occur after static checks are ran. Broadly speaking, these
|
||||
# files changing would result in SCons rebuilding the engine, or are otherwise pertinent to the
|
||||
# buildsystem itself.
|
||||
sources:
|
||||
- .github/{actions/*,workflows}/*.yml
|
||||
- "**/{SConstruct,SCsub,*.py}"
|
||||
- "**/*.{h,hpp,hh,hxx,c,cpp,cc,cxx,m,mm,inc,glsl}"
|
||||
- misc/extension_api_validation/**
|
||||
- modules/mono/**/*.{cs,csproj,sln,props,targets}
|
||||
- platform/android/java/{gradle*,**/*.{jar,java,kt,gradle}}
|
||||
- platform/web/{package{,-lock}.json,js/**/*.js}
|
||||
- tests/**
|
||||
|
||||
# Determines which files are appropriate for running clangd-tidy checks on. This is a subset out
|
||||
# of necessity, as we're only evaluating a Linux runner.
|
||||
clangd:
|
||||
- "**/*.{h,hpp,hxx,hh,c,cpp,cxx,cc}"
|
||||
- "!**/thirdparty/**"
|
||||
- "!**/*-so_wrap.{h,c}"
|
||||
- "!drivers/{apple*,core*,d3d12,metal,wasapi,windows,winmidi,xaudio2}/**"
|
||||
- "!editor/shader/shader_baker/shader_baker_export_plugin_platform_{d3d12,metal}.{h,cpp}"
|
||||
- "!modules/camera/camera_{android,macos,win}.{h,cpp}"
|
||||
- "!modules/openxr/extensions/platform/openxr_{android,metal}_extension.{h,cpp}"
|
||||
- "!platform/{android,ios,macos,visionos,web,windows}/**"
|
||||
- "platform/{android,ios,macos,visionos,web,windows}/{api,export}/*.{h,hpp,hxx,hh,c,cpp,cxx,cc}"
|
||||
65
engine/.github/workflows/android_builds.yml
vendored
65
engine/.github/workflows/android_builds.yml
vendored
|
|
@ -1,6 +1,10 @@
|
|||
name: 🤖 Android Builds
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
SERVICE_ACCOUNT_KEY:
|
||||
required: true
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
# Global Settings
|
||||
|
|
@ -8,7 +12,6 @@ env:
|
|||
SCONS_FLAGS: >-
|
||||
dev_mode=yes
|
||||
module_text_server_fb_enabled=yes
|
||||
tests=no
|
||||
swappy=yes
|
||||
|
||||
jobs:
|
||||
|
|
@ -23,6 +26,7 @@ jobs:
|
|||
- name: Editor (target=editor)
|
||||
cache-name: android-editor
|
||||
target: editor
|
||||
instrumented_tests: true
|
||||
scons-flags: >-
|
||||
arch=arm64
|
||||
production=yes
|
||||
|
|
@ -30,21 +34,23 @@ jobs:
|
|||
- name: Template arm32 (target=template_debug, arch=arm32)
|
||||
cache-name: android-template-arm32
|
||||
target: template_debug
|
||||
instrumented_tests: false
|
||||
scons-flags: arch=arm32
|
||||
|
||||
- name: Template arm64 (target=template_debug, arch=arm64)
|
||||
cache-name: android-template-arm64
|
||||
target: template_debug
|
||||
instrumented_tests: true
|
||||
scons-flags: arch=arm64
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Java 17
|
||||
uses: actions/setup-java@v4
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
|
|
@ -116,3 +122,56 @@ jobs:
|
|||
with:
|
||||
name: ${{ matrix.cache-name }}-picoos
|
||||
path: picoos
|
||||
|
||||
- name: Generate Instrumented test APKs
|
||||
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
|
||||
run: |
|
||||
cd platform/android/java
|
||||
if [ "${{ matrix.target }}" = "editor" ]; then
|
||||
./gradlew :editor:assembleAndroidAndroidTest :editor:assembleAndroidDebug -Pperform_signing=true
|
||||
else
|
||||
./gradlew :app:assembleAndroidTest :app:assembleInstrumentedDebug -Pperform_signing=true
|
||||
fi
|
||||
cd ../../..
|
||||
|
||||
- name: Create credentials file
|
||||
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
|
||||
uses: google-github-actions/auth@v3
|
||||
with:
|
||||
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
|
||||
|
||||
- name: Set up gcloud CLI
|
||||
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
|
||||
uses: google-github-actions/setup-gcloud@v3
|
||||
|
||||
- name: Run tests on Firebase Test Lab
|
||||
if: matrix.instrumented_tests && github.repository == 'godotengine/godot' && github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
|
||||
run: |
|
||||
set +e
|
||||
|
||||
if [ "${{ matrix.target }}" = "editor" ]; then
|
||||
APP_APK="platform/android/java/editor/build/outputs/apk/android/debug/android_editor-android-debug.apk"
|
||||
TEST_APK="platform/android/java/editor/build/outputs/apk/androidTest/android/debug/android_editor-android-debug-androidTest.apk"
|
||||
else
|
||||
APP_APK="platform/android/java/app/build/outputs/apk/instrumented/debug/android_debug.apk"
|
||||
TEST_APK="platform/android/java/app/build/outputs/apk/androidTest/instrumented/debug/app-instrumented-debug-androidTest.apk"
|
||||
fi
|
||||
|
||||
output=$(gcloud firebase test android run \
|
||||
--type instrumentation \
|
||||
--app "$APP_APK" \
|
||||
--test "$TEST_APK" \
|
||||
--device model=MediumPhone.arm,version=26 \
|
||||
--device model=java,version=30 \
|
||||
--device model=MediumPhone.arm,version=32 \
|
||||
--device model=MediumTablet.arm,version=35 \
|
||||
--device model=rango,version=36 \
|
||||
--use-orchestrator \
|
||||
--timeout 2m 2>&1)
|
||||
exit_code=$?
|
||||
echo "$output"
|
||||
if [[ $exit_code -eq 1 && "$output" == *"TEST_QUOTA_EXCEEDED"* ]]; then
|
||||
echo "::warning title=Firebase Test Lab::Test quota exceeded."
|
||||
exit_code=0
|
||||
fi
|
||||
exit "$exit_code"
|
||||
|
|
|
|||
9
engine/.github/workflows/ios_builds.yml
vendored
9
engine/.github/workflows/ios_builds.yml
vendored
|
|
@ -8,26 +8,21 @@ env:
|
|||
SCONS_FLAGS: >-
|
||||
dev_mode=yes
|
||||
module_text_server_fb_enabled=yes
|
||||
tests=no
|
||||
debug_symbols=no
|
||||
|
||||
jobs:
|
||||
ios-template:
|
||||
# From https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#choosing-github-hosted-runners
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-26
|
||||
name: Template (target=template_release)
|
||||
timeout-minutes: 60
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# From https://github.com/actions/runner-images/blob/main/images/macos
|
||||
- name: Select Xcode 26
|
||||
run: sudo xcode-select -s /Applications/Xcode_26.0.1.app
|
||||
|
||||
- name: Restore Godot build cache
|
||||
uses: ./.github/actions/godot-cache-restore
|
||||
continue-on-error: true
|
||||
|
|
|
|||
67
engine/.github/workflows/linux_builds.yml
vendored
67
engine/.github/workflows/linux_builds.yml
vendored
|
|
@ -1,6 +1,11 @@
|
|||
name: 🐧 Linux Builds
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
changed-files:
|
||||
description: A list of changed files, pre-filtered for parsing by clangd-tidy.
|
||||
required: true
|
||||
type: string
|
||||
workflow_dispatch:
|
||||
|
||||
# Global Settings
|
||||
|
|
@ -8,7 +13,6 @@ env:
|
|||
SCONS_FLAGS: >-
|
||||
dev_mode=yes
|
||||
module_text_server_fb_enabled=yes
|
||||
"accesskit_sdk_path=${{ github.workspace }}/accesskit-c-0.21.2/"
|
||||
GODOT_CPP_BRANCH: 4.5
|
||||
DOTNET_NOLOGO: true
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
||||
|
|
@ -30,15 +34,17 @@ jobs:
|
|||
- name: Editor w/ Mono (target=editor)
|
||||
cache-name: linux-editor-mono
|
||||
target: editor
|
||||
scons-flags: module_mono_enabled=yes
|
||||
scons-flags: module_mono_enabled=yes compiledb=yes
|
||||
bin: ./bin/godot.linuxbsd.editor.x86_64.mono
|
||||
build-mono: true
|
||||
doc-test: true
|
||||
proj-conv: true
|
||||
proj-export: true
|
||||
api-compat: true
|
||||
artifact: true
|
||||
# Validate godot-cpp compatibility on one arbitrary editor build.
|
||||
godot-cpp: true
|
||||
clangd-tidy: true
|
||||
|
||||
- name: Editor with doubles and GCC sanitizers (target=editor, dev_build=yes, scu_build=yes, precision=double, use_asan=yes, use_ubsan=yes, linker=mold)
|
||||
cache-name: linux-editor-double-sanitizers
|
||||
|
|
@ -54,6 +60,7 @@ jobs:
|
|||
linker=mold
|
||||
bin: ./bin/godot.linuxbsd.editor.dev.double.x86_64.san
|
||||
proj-test: true
|
||||
free-space: true
|
||||
|
||||
- name: Editor with clang sanitizers (target=editor, dev_build=yes, use_asan=yes, use_ubsan=yes, use_llvm=yes, linker=lld)
|
||||
cache-name: linux-editor-llvm-sanitizers
|
||||
|
|
@ -67,6 +74,7 @@ jobs:
|
|||
bin: ./bin/godot.linuxbsd.editor.dev.x86_64.llvm.san
|
||||
# Test our oldest supported SCons/Python versions on one arbitrary editor build.
|
||||
legacy-scons: true
|
||||
free-space: true
|
||||
|
||||
- name: Editor with ThreadSanitizer (target=editor, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld)
|
||||
cache-name: linux-editor-thread-sanitizer
|
||||
|
|
@ -77,6 +85,7 @@ jobs:
|
|||
use_llvm=yes
|
||||
linker=lld
|
||||
bin: ./bin/godot.linuxbsd.editor.dev.x86_64.llvm.san
|
||||
free-space: true
|
||||
|
||||
- name: Template w/ Mono, release (target=template_release)
|
||||
cache-name: linux-template-mono
|
||||
|
|
@ -110,7 +119,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
|
|
@ -118,11 +127,12 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install libwayland-bin # TODO: Figure out somehow how to embed this one.
|
||||
if [ "${{ matrix.proj-test }}" == "true" ]; then
|
||||
if [ "${{ matrix.proj-test }}" == "true" -o "${{ matrix.proj-export }}" == "true" ]; then
|
||||
sudo apt-get install mesa-vulkan-drivers
|
||||
fi
|
||||
|
||||
- name: Free disk space on runner
|
||||
if: matrix.free-space
|
||||
run: |
|
||||
echo "Disk usage before:" && df -h
|
||||
sudo rm -rf /usr/local/lib/android
|
||||
|
|
@ -143,8 +153,8 @@ jobs:
|
|||
uses: ./.github/actions/godot-deps
|
||||
with:
|
||||
# Sync with Ensure*Version in SConstruct.
|
||||
python-version: 3.8
|
||||
scons-version: 4.0
|
||||
python-version: 3.9
|
||||
scons-version: 4.4
|
||||
|
||||
- name: Force remove preinstalled .NET SDKs
|
||||
if: matrix.build-mono
|
||||
|
|
@ -153,21 +163,21 @@ jobs:
|
|||
|
||||
- name: Setup older .NET SDK as baseline
|
||||
if: matrix.build-mono
|
||||
uses: actions/setup-dotnet@v4
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
# Targeting the oldest version we want to support to ensure it still builds.
|
||||
dotnet-version: 8.0.100
|
||||
|
||||
- name: Download pre-built AccessKit
|
||||
uses: dsaltares/fetch-gh-release-asset@1.1.2
|
||||
with:
|
||||
repo: godotengine/godot-accesskit-c-static
|
||||
version: tags/0.21.2
|
||||
file: accesskit-c-0.21.2.zip
|
||||
target: accesskit-c-0.21.2/accesskit_c.zip
|
||||
|
||||
- name: Extract pre-built AccessKit
|
||||
run: unzip -o accesskit-c-0.21.2/accesskit_c.zip
|
||||
shell: sh
|
||||
id: accesskit-sdk
|
||||
run: |
|
||||
if python ./misc/scripts/install_accesskit.py; then
|
||||
echo "ACCESSKIT_ENABLED=yes" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::warning::AccessKit SDK installation failed, building without AccessKit support."
|
||||
echo "ACCESSKIT_ENABLED=no" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Install mold linker
|
||||
if: matrix.proj-test
|
||||
|
|
@ -176,10 +186,16 @@ jobs:
|
|||
- name: Compilation
|
||||
uses: ./.github/actions/godot-build
|
||||
with:
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }}
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} accesskit=${{ steps.accesskit-sdk.outputs.ACCESSKIT_ENABLED }}
|
||||
platform: linuxbsd
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Style checks via clangd-tidy
|
||||
if: matrix.clangd-tidy
|
||||
uses: ./.github/actions/clangd-tidy
|
||||
with:
|
||||
changed-files: ${{ inputs.changed-files }}
|
||||
|
||||
- name: Compilation (godot-cpp)
|
||||
uses: ./.github/actions/godot-cpp-build
|
||||
if: matrix.godot-cpp
|
||||
|
|
@ -208,6 +224,7 @@ jobs:
|
|||
- name: Prepare artifact
|
||||
if: matrix.artifact
|
||||
run: |
|
||||
rm -rf ./bin/build_deps
|
||||
strip bin/godot.*
|
||||
chmod +x bin/godot.*
|
||||
|
||||
|
|
@ -238,11 +255,18 @@ jobs:
|
|||
git diff --color --exit-code && ! git ls-files --others --exclude-standard | sed -e 's/^/New doc file missing in PR: /' | grep 'xml$'
|
||||
|
||||
# Check API backwards compatibility
|
||||
- name: Check for GDExtension compatibility
|
||||
- name: Check for GDExtension compatibility – JSON check
|
||||
if: matrix.api-compat
|
||||
run: |
|
||||
./misc/scripts/validate_extension_api.sh "${{ matrix.bin }}"
|
||||
|
||||
- name: Test GDExtension compatibility – load methods
|
||||
uses: ./.github/actions/godot-compat-test
|
||||
if: matrix.api-compat
|
||||
with:
|
||||
bin: ${{ matrix.bin }}
|
||||
reftags: "4.5-stable,4.4-stable"
|
||||
|
||||
# Download and run the test project
|
||||
- name: Test Godot project
|
||||
uses: ./.github/actions/godot-project-test
|
||||
|
|
@ -250,6 +274,13 @@ jobs:
|
|||
with:
|
||||
bin: ${{ matrix.bin }}
|
||||
|
||||
# Test project export
|
||||
- name: Test project export
|
||||
uses: ./.github/actions/godot-project-export
|
||||
if: matrix.proj-export
|
||||
with:
|
||||
bin: ${{ matrix.bin }}
|
||||
|
||||
# Test the project converter
|
||||
- name: Test project converter
|
||||
uses: ./.github/actions/godot-converter-test
|
||||
|
|
|
|||
43
engine/.github/workflows/macos_builds.yml
vendored
43
engine/.github/workflows/macos_builds.yml
vendored
|
|
@ -8,12 +8,11 @@ env:
|
|||
SCONS_FLAGS: >-
|
||||
dev_mode=yes
|
||||
module_text_server_fb_enabled=yes
|
||||
"accesskit_sdk_path=${{ github.workspace }}/accesskit-c-0.21.2/"
|
||||
|
||||
jobs:
|
||||
build-macos:
|
||||
# From https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job#choosing-github-hosted-runners
|
||||
runs-on: macos-latest
|
||||
runs-on: macos-26
|
||||
name: ${{ matrix.name }}
|
||||
timeout-minutes: 120
|
||||
strategy:
|
||||
|
|
@ -33,14 +32,10 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
# From https://github.com/actions/runner-images/blob/main/images/macos
|
||||
- name: Select Xcode 26
|
||||
run: sudo xcode-select -s /Applications/Xcode_26.0.1.app
|
||||
|
||||
- name: Restore Godot build cache
|
||||
uses: ./.github/actions/godot-cache-restore
|
||||
with:
|
||||
|
|
@ -50,16 +45,27 @@ jobs:
|
|||
- name: Setup Python and SCons
|
||||
uses: ./.github/actions/godot-deps
|
||||
|
||||
- name: Download pre-built AccessKit
|
||||
uses: dsaltares/fetch-gh-release-asset@1.1.2
|
||||
with:
|
||||
repo: godotengine/godot-accesskit-c-static
|
||||
version: tags/0.21.2
|
||||
file: accesskit-c-0.21.2.zip
|
||||
target: accesskit-c-0.21.2/accesskit_c.zip
|
||||
- name: Download pre-built ANGLE
|
||||
shell: sh
|
||||
id: angle-sdk
|
||||
run: |
|
||||
if python ./misc/scripts/install_angle.py; then
|
||||
echo "ANGLE_ENABLED=yes" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::warning::ANGLE SDK installation failed, building without ANGLE support."
|
||||
echo "ANGLE_ENABLED=no" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Extract pre-built AccessKit
|
||||
run: unzip -o accesskit-c-0.21.2/accesskit_c.zip
|
||||
- name: Download pre-built AccessKit
|
||||
shell: sh
|
||||
id: accesskit-sdk
|
||||
run: |
|
||||
if python3 ./misc/scripts/install_accesskit.py; then
|
||||
echo "ACCESSKIT_ENABLED=yes" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::warning::AccessKit SDK installation failed, building without AccessKit support."
|
||||
echo "ACCESSKIT_ENABLED=no" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Setup Vulkan SDK
|
||||
id: vulkan-sdk
|
||||
|
|
@ -75,14 +81,14 @@ jobs:
|
|||
- name: Compilation (x86_64)
|
||||
uses: ./.github/actions/godot-build
|
||||
with:
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} arch=x86_64 vulkan=${{ steps.vulkan-sdk.outputs.VULKAN_ENABLED }}
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} arch=x86_64 vulkan=${{ steps.vulkan-sdk.outputs.VULKAN_ENABLED }} accesskit=${{ steps.accesskit-sdk.outputs.ACCESSKIT_ENABLED }} angle=${{ steps.angle-sdk.outputs.ANGLE_ENABLED }}
|
||||
platform: macos
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- name: Compilation (arm64)
|
||||
uses: ./.github/actions/godot-build
|
||||
with:
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} arch=arm64 vulkan=${{ steps.vulkan-sdk.outputs.VULKAN_ENABLED }}
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} arch=arm64 vulkan=${{ steps.vulkan-sdk.outputs.VULKAN_ENABLED }} accesskit=${{ steps.accesskit-sdk.outputs.ACCESSKIT_ENABLED }} angle=${{ steps.angle-sdk.outputs.ANGLE_ENABLED }}
|
||||
platform: macos
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
|
|
@ -96,6 +102,7 @@ jobs:
|
|||
run: |
|
||||
lipo -create ./bin/godot.macos.${{ matrix.target }}.x86_64 ./bin/godot.macos.${{ matrix.target }}.arm64 -output ./bin/godot.macos.${{ matrix.target }}.universal
|
||||
rm ./bin/godot.macos.${{ matrix.target }}.x86_64 ./bin/godot.macos.${{ matrix.target }}.arm64
|
||||
rm -rf ./bin/build_deps
|
||||
strip bin/godot.*
|
||||
chmod +x bin/godot.*
|
||||
|
||||
|
|
|
|||
10
engine/.github/workflows/runner.yml
vendored
10
engine/.github/workflows/runner.yml
vendored
|
|
@ -18,29 +18,39 @@ jobs:
|
|||
android-build:
|
||||
name: 🤖 Android
|
||||
needs: static-checks
|
||||
if: needs.static-checks.outputs.sources-changed == 'true' || github.event_name != 'pull_request'
|
||||
uses: ./.github/workflows/android_builds.yml
|
||||
secrets:
|
||||
SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }}
|
||||
|
||||
ios-build:
|
||||
name: 🍏 iOS
|
||||
needs: static-checks
|
||||
if: needs.static-checks.outputs.sources-changed == 'true' || github.event_name != 'pull_request'
|
||||
uses: ./.github/workflows/ios_builds.yml
|
||||
|
||||
linux-build:
|
||||
name: 🐧 Linux
|
||||
needs: static-checks
|
||||
if: needs.static-checks.outputs.sources-changed == 'true' || github.event_name != 'pull_request'
|
||||
uses: ./.github/workflows/linux_builds.yml
|
||||
with:
|
||||
changed-files: ${{ needs.static-checks.outputs.changed-files }}
|
||||
|
||||
macos-build:
|
||||
name: 🍎 macOS
|
||||
needs: static-checks
|
||||
if: needs.static-checks.outputs.sources-changed == 'true' || github.event_name != 'pull_request'
|
||||
uses: ./.github/workflows/macos_builds.yml
|
||||
|
||||
windows-build:
|
||||
name: 🏁 Windows
|
||||
needs: static-checks
|
||||
if: needs.static-checks.outputs.sources-changed == 'true' || github.event_name != 'pull_request'
|
||||
uses: ./.github/workflows/windows_builds.yml
|
||||
|
||||
web-build:
|
||||
name: 🌐 Web
|
||||
needs: static-checks
|
||||
if: needs.static-checks.outputs.sources-changed == 'true' || github.event_name != 'pull_request'
|
||||
uses: ./.github/workflows/web_builds.yml
|
||||
|
|
|
|||
42
engine/.github/workflows/static_checks.yml
vendored
42
engine/.github/workflows/static_checks.yml
vendored
|
|
@ -1,6 +1,13 @@
|
|||
name: 📊 Static Checks
|
||||
on:
|
||||
workflow_call:
|
||||
outputs:
|
||||
changed-files:
|
||||
description: A list of changed files, pre-filtered for parsing by clangd-tidy.
|
||||
value: ${{ jobs.static-checks.outputs.changed-files }}
|
||||
sources-changed:
|
||||
description: Determines if any source files were changed.
|
||||
value: ${{ jobs.static-checks.outputs.sources-changed }}
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
|
@ -8,11 +15,15 @@ jobs:
|
|||
name: Code style, file formatting, and docs
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
outputs:
|
||||
changed-files: '"${{ steps.changed-files.outputs.clangd_all_changed_files }}"' # Wrap with quotes to bookend internal quote separators.
|
||||
sources-changed: ${{ steps.changed-files.outputs.sources_any_changed }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 2
|
||||
fetch-depth: 0 # Treeless clone. Slightly less performant than a shallow clone, but makes finding diffs instantaneous.
|
||||
filter: tree:0 # See: https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/
|
||||
|
||||
# This needs to happen before Python and npm execution; it must happen before any extra files are written.
|
||||
- name: .gitignore checks (gitignore_check.sh)
|
||||
|
|
@ -20,18 +31,17 @@ jobs:
|
|||
bash ./misc/scripts/gitignore_check.sh
|
||||
|
||||
- name: Get changed files
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" == "pull_request" ]; then
|
||||
files=$(git diff-tree --no-commit-id --name-only -r HEAD^1..HEAD 2> /dev/null || true)
|
||||
elif [ "${{ github.event_name }}" == "push" -a "${{ github.event.forced }}" == "false" -a "${{ github.event.created }}" == "false" ]; then
|
||||
files=$(git diff-tree --no-commit-id --name-only -r ${{ github.event.before }}..${{ github.event.after }} 2> /dev/null || true)
|
||||
fi
|
||||
files=$(echo "$files" | xargs -I {} sh -c 'echo "\"./{}\""' | tr '\n' ' ')
|
||||
echo "CHANGED_FILES=$files" >> $GITHUB_ENV
|
||||
|
||||
- name: Style checks via pre-commit
|
||||
uses: pre-commit/action@v3.0.1
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v47
|
||||
with:
|
||||
extra_args: --files ${{ env.CHANGED_FILES }}
|
||||
safe_output: false # Output passed to environment variable to avoid command injection.
|
||||
separator: '" "' # To account for paths with spaces, ensure our items are split by quotes internally.
|
||||
skip_initial_fetch: true
|
||||
files_yaml_from_source_file: .github/changed_files.yml
|
||||
|
||||
- name: Style checks via prek
|
||||
uses: j178/prek-action@v2
|
||||
env:
|
||||
CHANGED_FILES: '"${{ steps.changed-files.outputs.everything_all_changed_files }}"' # Wrap with quotes to bookend internal quote separators.
|
||||
with:
|
||||
extra-args: --files ${{ env.CHANGED_FILES }}
|
||||
|
|
|
|||
13
engine/.github/workflows/web_builds.yml
vendored
13
engine/.github/workflows/web_builds.yml
vendored
|
|
@ -7,7 +7,6 @@ on:
|
|||
env:
|
||||
SCONS_FLAGS: >-
|
||||
dev_mode=yes
|
||||
tests=no
|
||||
debug_symbols=no
|
||||
use_closure_compiler=yes
|
||||
EM_VERSION: 4.0.11
|
||||
|
|
@ -21,26 +20,26 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- name: Template w/ threads (target=template_release, threads=yes)
|
||||
- name: Template w/ threads, 64-bit (target=template_release, threads=yes, arch=wasm64)
|
||||
cache-name: web-template
|
||||
target: template_release
|
||||
scons-flags: threads=yes
|
||||
scons-flags: threads=yes arch=wasm64
|
||||
artifact: true
|
||||
|
||||
- name: Template w/o threads (target=template_release, threads=no)
|
||||
- name: Template w/o threads, 32-bit (target=template_release, threads=no, arch=wasm32)
|
||||
cache-name: web-nothreads-template
|
||||
target: template_release
|
||||
scons-flags: threads=no
|
||||
scons-flags: threads=no arch=wasm32
|
||||
artifact: true
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Set up Emscripten latest
|
||||
uses: mymindstorm/setup-emsdk@v14
|
||||
uses: emscripten-core/setup-emsdk@v16
|
||||
with:
|
||||
version: ${{ env.EM_VERSION }}
|
||||
no-cache: true
|
||||
|
|
|
|||
48
engine/.github/workflows/windows_builds.yml
vendored
48
engine/.github/workflows/windows_builds.yml
vendored
|
|
@ -9,8 +9,6 @@ env:
|
|||
dev_mode=yes
|
||||
module_text_server_fb_enabled=yes
|
||||
debug_symbols=no
|
||||
"angle_libs=${{ github.workspace }}/"
|
||||
"accesskit_sdk_path=${{ github.workspace }}/accesskit-c-0.21.2/"
|
||||
SCONS_CACHE_MSVC_CONFIG: true
|
||||
PYTHONIOENCODING: utf8
|
||||
|
||||
|
|
@ -59,7 +57,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
|
|
@ -84,32 +82,37 @@ jobs:
|
|||
fi
|
||||
continue-on-error: true
|
||||
|
||||
- name: Download pre-built ANGLE static libraries
|
||||
uses: dsaltares/fetch-gh-release-asset@1.1.2
|
||||
with:
|
||||
repo: godotengine/godot-angle-static
|
||||
version: tags/chromium/6601.2
|
||||
file: godot-angle-static-x86_64-${{ matrix.compiler == 'gcc' && 'gcc' || 'msvc' }}-release.zip
|
||||
target: angle/angle.zip
|
||||
- name: Download pre-built ANGLE
|
||||
shell: sh
|
||||
id: angle-sdk
|
||||
run: |
|
||||
if python ./misc/scripts/install_angle.py; then
|
||||
echo "ANGLE_ENABLED=yes" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::warning::ANGLE SDK installation failed, building without ANGLE support."
|
||||
echo "ANGLE_ENABLED=no" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Extract pre-built ANGLE static libraries
|
||||
run: Expand-Archive -Force angle/angle.zip ${{ github.workspace }}/
|
||||
- name: Download WinRT components
|
||||
shell: sh
|
||||
run: python ./misc/scripts/install_winrt.py
|
||||
continue-on-error: true
|
||||
|
||||
- name: Download pre-built AccessKit
|
||||
uses: dsaltares/fetch-gh-release-asset@1.1.2
|
||||
with:
|
||||
repo: godotengine/godot-accesskit-c-static
|
||||
version: tags/0.21.2
|
||||
file: accesskit-c-0.21.2.zip
|
||||
target: accesskit-c-0.21.2/accesskit_c.zip
|
||||
|
||||
- name: Extract pre-built AccessKit
|
||||
run: unzip -o accesskit-c-0.21.2/accesskit_c.zip
|
||||
shell: sh
|
||||
id: accesskit-sdk
|
||||
run: |
|
||||
if python ./misc/scripts/install_accesskit.py; then
|
||||
echo "ACCESSKIT_ENABLED=yes" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::warning::AccessKit SDK installation failed, building without AccessKit support."
|
||||
echo "ACCESSKIT_ENABLED=no" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Compilation
|
||||
uses: ./.github/actions/godot-build
|
||||
with:
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }}
|
||||
scons-flags: ${{ env.SCONS_FLAGS }} ${{ matrix.scons-flags }} d3d12=${{ steps.d3d12-sdk.outputs.D3D12_ENABLED }} accesskit=${{ steps.accesskit-sdk.outputs.ACCESSKIT_ENABLED }} angle=${{ steps.angle-sdk.outputs.ANGLE_ENABLED }}
|
||||
platform: windows
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
|
|
@ -122,6 +125,7 @@ jobs:
|
|||
- name: Prepare artifact
|
||||
if: matrix.compiler == 'msvc'
|
||||
run: |
|
||||
Remove-Item bin/build_deps -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force
|
||||
|
||||
- name: Upload artifact
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue