Skip to content

Commit 598ec78

Browse files
Sync with Redot 26.2-stable
* Sync with Redot 26.2-stable Also removed the CI builds for double precision. We dont distribute binaries for this anyways, and with Godot 4.5 they started including the single precision metadata into the `extension_api.json` which causes failures. * Fix: Default to single precision in CMake bindings generator when none is specified * CI: Update Linux runners to `ubuntu-24.04` and adjust artifact naming
1 parent 8e5fb13 commit 598ec78

5 files changed

Lines changed: 19244 additions & 1201 deletions

File tree

‎.github/workflows/ci-cmake.yml‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,13 @@ jobs:
3333
matrix:
3434
include:
3535
- name: 🐧 Linux (GCC, Makefiles)
36-
os: ubuntu-22.04
36+
os: ubuntu-24.04
3737
platform: linux
3838
config-flags: -DCMAKE_BUILD_TYPE=Release
39-
artifact-name: godot-cpp-linux-glibc2.27-x86_64-release.cmake
39+
artifact-name: godot-cpp-linux-glibc2.39-x86_64-release.cmake
4040
artifact-path: cmake-build/bin/libgodot-cpp.linux.template_release.x86_64.a
4141
run-tests: true
4242

43-
- name: 🐧 Linux (GCC, Makefiles, Double Precision)
44-
os: ubuntu-22.04
45-
platform: linux
46-
config-flags: -DCMAKE_BUILD_TYPE=Release -DGODOTCPP_PRECISION=double
47-
artifact-name: godot-cpp-linux-glibc2.27-x86_64-double-release.cmake
48-
artifact-path: cmake-build/bin/libgodot-cpp.linux.template_release.double.x86_64.a
49-
flags: precision=double
50-
run-tests: false
51-
5243
- name: 🏁 Windows (x86_64, MSVC)
5344
os: windows-2022
5445
platform: windows

‎.github/workflows/ci-scons.yml‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,13 @@ jobs:
2424
matrix:
2525
include:
2626
- name: 🐧 Linux (GCC)
27-
os: ubuntu-22.04
27+
os: ubuntu-24.04
2828
platform: linux
29-
artifact-name: redot-cpp-linux-glibc2.27-x86_64-release
29+
artifact-name: redot-cpp-linux-glibc2.39-x86_64-release
3030
artifact-path: bin/libredot-cpp.linux.template_release.x86_64.a
3131
run-tests: true
3232
cache-name: linux-x86_64
3333

34-
- name: 🐧 Linux (GCC, Double Precision)
35-
os: ubuntu-22.04
36-
platform: linux
37-
artifact-name: redot-cpp-linux-glibc2.27-x86_64-double-release
38-
artifact-path: bin/libredot-cpp.linux.template_release.double.x86_64.a
39-
flags: precision=double
40-
run-tests: false
41-
cache-name: linux-x86_64-f64
42-
4334
- name: 🏁 Windows (x86_64, MSVC)
4435
os: windows-2022
4536
platform: windows

‎cmake/GodotCPPModule.cmake‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,15 @@ missing. ]]
8686
function(
8787
binding_generator_generate_bindings
8888
API_FILE
89-
USE_TEMPLATE_GET_NODE,
90-
BITS,
91-
PRECISION,
89+
USE_TEMPLATE_GET_NODE
90+
BITS
91+
PRECISION
9292
OUTPUT_DIR
9393
)
94+
if(PRECISION STREQUAL "")
95+
set(PRECISION "single")
96+
endif()
97+
9498
# This code snippet will be squashed into a single line
9599
set(PYTHON_SCRIPT
96100
"from binding_generator import generate_bindings"

0 commit comments

Comments
 (0)