builds godot
Diffstat (limited to '.github/actions/build-godot/action.yml')
-rw-r--r--.github/actions/build-godot/action.yml17
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml
index d3c5302..88ec767 100644
--- a/.github/actions/build-godot/action.yml
+++ b/.github/actions/build-godot/action.yml
@@ -11,6 +11,9 @@ inputs:
target:
description: Target (template_release, template_debug, editor)
required: true
+ tools:
+ description: Tools!
+ default: "no"
runs:
using: "composite"
@@ -35,7 +38,7 @@ runs:
shell: bash
- name: Setup scons
- run: pip install scons
+ run: pip install --force-reinstall -v "scons==4.4.0"
shell: bash
- name: Download more ram
@@ -48,12 +51,14 @@ runs:
run: |
echo ::group::Compilation
cd godot
- scons_flags=${{ env.flags }}
+ scons_flags="${{ env.flags }} ${{ inputs.flags }} tools=${{ inputs.tools }}"
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
- strip bin/* || true
+ [[ ${{ inputs.tools }} == "yes" ]] && scons_flags="${scons_flags//disable_3d=yes/}" # remove disable_3d=yes if editor
+ [[ ${{ inputs.tools }} == "yes" ]] && scons_flags="$scons_flags debug_symbols=no"
+ [[ ${{ inputs.target }} ]] && 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