builds godot
Diffstat (limited to '.github/actions/build-godot/action.yml')
-rw-r--r--.github/actions/build-godot/action.yml9
1 files changed, 5 insertions, 4 deletions
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml
index 0224fb7..cf848da 100644
--- a/.github/actions/build-godot/action.yml
+++ b/.github/actions/build-godot/action.yml
@@ -13,7 +13,7 @@ inputs:
description: Flags to pass to the build script
required: false
target:
- description: Target (release, release_debug, debug)
+ description: Target (template_release, template_debug, editor)
required: true
runs:
@@ -25,7 +25,7 @@ runs:
ref: ${{ env.ref }}
- name: Install linux dependencies
- if: inputs.platform == 'x11'
+ if: inputs.platform == 'linuxbsd'
run: |
echo ::group::Dependencies
sudo apt-get update -q
@@ -48,9 +48,10 @@ runs:
cd godot
scons_flags=${{ env.flags }}
cores=$(nproc) || cores=$(sysctl -n hw.ncpu)
+ [[ ${{ inputs.platform }} == "web" ]] && cores=1
[[ -n "${{ inputs.flags }}" ]] && scons_flags="${{ inputs.flags }}"
- [[ $tools == "yes" ]] && scons_flags="${scons_flags//disable_3d=yes/}" # remove disable_3d=yes if tools=yes
- scons -j$((cores+2)) p=${{ inputs.platform }} tools=${{ env.tools }} target=${{ inputs.target }} use_lto=yes udev=yes $scons_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
ls bin
echo ::endgroup::