builds godot
Diffstat (limited to '.github/actions/build-godot/action.yml')
-rw-r--r--.github/actions/build-godot/action.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/.github/actions/build-godot/action.yml b/.github/actions/build-godot/action.yml
index 8c84607..0224fb7 100644
--- a/.github/actions/build-godot/action.yml
+++ b/.github/actions/build-godot/action.yml
@@ -25,9 +25,9 @@ runs:
ref: ${{ env.ref }}
- name: Install linux dependencies
- if: ${{ inputs.platform }} == "x11"
+ if: inputs.platform == 'x11'
run: |
- [[ ${{ inputs.platform }} != "x11" ]] && exit 0
+ echo ::group::Dependencies
sudo apt-get update -q
sudo apt-get install -qqq \
build-essential pkg-config libx11-dev libxcursor-dev \
@@ -35,6 +35,7 @@ runs:
libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm \
libspeechd-dev speech-dispatcher \
tree
+ echo ::endgroup::
shell: bash
- name: Setup scons
@@ -43,11 +44,14 @@ runs:
- name: Build Godot
run: |
+ echo ::group::Compilation
cd godot
- scons_flags=$flags
+ scons_flags=${{ env.flags }}
cores=$(nproc) || cores=$(sysctl -n hw.ncpu)
[[ -n "${{ inputs.flags }}" ]] && scons_flags="${{ inputs.flags }}"
- scons -j$((cores+2)) p=${{ inputs.platform }} tools=$tools target=${{ inputs.target }} use_lto=yes udev=yes $scons_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
strip bin/* || true
ls bin
+ echo ::endgroup::
shell: bash