builds godot
add debug symbols
bendn 2023-10-12
parent 6001cb7 · commit ae39857
-rw-r--r--.github/2d-build-modules.py5
-rw-r--r--.github/actions/build-godot/action.yml7
-rw-r--r--.github/actions/release/action.yml1
-rw-r--r--.github/normal-build-modules.py6
4 files changed, 8 insertions, 11 deletions
diff --git a/.github/2d-build-modules.py b/.github/2d-build-modules.py
index 4f46cd7..0ef670b 100644
--- a/.github/2d-build-modules.py
+++ b/.github/2d-build-modules.py
@@ -1,11 +1,8 @@
brotli = "yes" # compression and woff2
dbus = "no" # screensaver and portal
-debug_symbols = "no"
-deprecated = "no"
execinfo = "no"
fontconfig = "yes" # system fonts
graphite = "yes"
-lto = "auto"
minizip = "no" # zip support
module_astcenc_enabled = "no" # adaptive scalable data compression format
module_basis_universal_enabled = "yes"
@@ -48,6 +45,7 @@ module_text_server_adv_enabled = "yes" # the cooler text server
module_tga_enabled = "no" # more image formats
module_theora_enabled = "no" # ogg theora video format
module_tinyexr_enabled = "no" # image
+module_ktx_enabled = "no" # why are there so many random image formats
module_upnp_enabled = "no" # universal plug and play
module_vhacd_enabled = "no" # 3d surface stuff
module_vorbis_enabled = "yes" # vorbis audio
@@ -59,7 +57,6 @@ module_xatlas_unwrap_enabled = "no" # lightmapping stuff
module_zip_enabled = "no"
opengl3 = "yes"
optimize = "size"
-production = "yes"
pulseaudio = "yes" # linux audio
speechd = "no" # tts
touch = "yes" # touchscreen
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml
index 86872e3..eb40b0c 100644
--- a/.github/actions/build-godot/action.yml
+++ b/.github/actions/build-godot/action.yml
@@ -52,8 +52,11 @@ runs:
cores=$(nproc) || cores=$(sysctl -n hw.ncpu)
[[ -n "${{ inputs.flags }}" ]] && scons_flags="${{ inputs.flags }}"
[[ ${{ inputs.target }} == "editor" ]] && scons_flags="${scons_flags//disable_3d=yes/}" # remove disable_3d=yes if editor
- scons -j$((cores+2)) p=${{ inputs.platform }} target=${{ inputs.target }} use_lto=yes udev=yes $scons_flags
- [[ ${{ inputs.target}} != "editor" ]] && strip bin/* || true
+ [[ ${{ inputs.target }} == "editor" ]] && scons_flags="$scons_flags debug_symbols=yes"
+ [[ ${{ inputs.target }} != "editor" ]] && scons_flags="$scons_flags deprecated=no"
+ scons -j$((cores+2)) p=${{ inputs.platform }} target=${{ inputs.target }} verbose=yes udev=yes dev_build=no lto=auto $scons_flags
+ echo "compile done"
+ [[ ${{ inputs.target}} != "editor" ]] && strip -v bin/* || true
ls bin
echo ::endgroup::
shell: bash
diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml
index ad49765..81a085f 100644
--- a/.github/actions/release/action.yml
+++ b/.github/actions/release/action.yml
@@ -28,6 +28,7 @@ runs:
- name: Compress
run: |
+ strip godot.linuxbsd.editor.x86_64 -v || true
mv godot.linuxbsd.editor.x86_64 ${{ env.fstart }}_linux.x86_64
mv templates.tpz ${{ env.fstart }}_export_templates.tpz
shell: bash
diff --git a/.github/normal-build-modules.py b/.github/normal-build-modules.py
index 189b130..6e3e912 100644
--- a/.github/normal-build-modules.py
+++ b/.github/normal-build-modules.py
@@ -1,5 +1 @@
-debug_symbols = "no"
-optimize = "size"
-lto = "auto"
-production = "yes"
-deprecated = "no"
+optimize = "speed"