chore(ci): enable debug symbols for debug builds

Exclude Windows as it leads to a "warning LNK4099: PDB '' was not found
with 'constants.windows.template_debug.x86_64.obj' or at ''" error on
subsequent runs.
This commit is contained in:
Leroy Hopson 2024-03-02 21:51:24 +13:00
parent e1000adbe5
commit 46f3aa12bf
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 7 additions and 2 deletions

View file

@ -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:

View file

@ -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}