diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8cac87..20017c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -160,7 +160,7 @@ jobs: SCONS_CACHE: ${{github.workspace}}/.scons-cache run: | cd addons/godot_xterm/native - scons platform=${{ matrix.platform }} target=template_${{ matrix.target }} arch=${{ matrix.arch }} -j2 + scons platform=${{ matrix.platform }} target=template_${{ matrix.target }} arch=${{ matrix.arch }} debug_symbols=${{ matrix.platform != 'windows' && matrix.target == 'debug' && 'yes' || 'no' }} -j2 - name: Upload binaries uses: actions/upload-artifact@v4 with: diff --git a/addons/godot_xterm/native/docker-compose.yml b/addons/godot_xterm/native/docker-compose.yml index 4298de6..81f0b1a 100644 --- a/addons/godot_xterm/native/docker-compose.yml +++ b/addons/godot_xterm/native/docker-compose.yml @@ -56,4 +56,9 @@ services: - /bin/bash - -c - | - scons target=template_$${TARGET:-debug} arch=$${ARCH:-x86_64} + if [ -z "$$DEBUG_SYMBOLS" ]; then + if [ "$$TARGET" == "debug" ]; then + DEBUG_SYMBOLS=yes + fi + fi + scons target=template_$${TARGET:-debug} arch=$${ARCH:-x86_64} debug_symbols=$${DEBUG_SYMBOLS:-no}