From e2b2319ee5e1c130ee684d8a9e426f12150e9583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 21 Sep 2021 21:54:55 +0200 Subject: [PATCH] CI: Build test binaries with debug symbols, then strip This allows having good stacktraces when the tests crash. (cherry picked from commit c4fa301b6b3b8faa3f14558e5207263b5490213b) --- .github/workflows/linux_builds.yml | 9 +++++++-- .github/workflows/windows_builds.yml | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 810c70c988d..7592e84e04a 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -4,7 +4,7 @@ on: [push, pull_request] # Global Settings env: GODOT_BASE_BRANCH: 3.x - SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no + SCONSFLAGS: verbose=yes warnings=all werror=yes concurrency: group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux @@ -42,7 +42,7 @@ jobs: cache-name: linux-template-mono target: release tools: false - sconsflags: module_mono_enabled=yes mono_glue=no + sconsflags: module_mono_enabled=yes mono_glue=no debug_symbols=no build-mono: false artifact: true @@ -125,6 +125,11 @@ jobs: DRI_PRIME=0 xvfb-run ${{ matrix.bin }} --doctool . 2>&1 > /dev/null || true git diff --color --exit-code && ! git ls-files --others --exclude-standard | sed -e 's/^/New doc file missing in PR: /' | grep 'xml$' + - name: Prepare artifact + if: ${{ matrix.artifact }} + run: | + strip bin/godot.* + - name: Upload artifact uses: ./.github/actions/upload-artifact if: ${{ matrix.artifact }} diff --git a/.github/workflows/windows_builds.yml b/.github/workflows/windows_builds.yml index 041fe837f4d..803b2809c77 100644 --- a/.github/workflows/windows_builds.yml +++ b/.github/workflows/windows_builds.yml @@ -41,7 +41,6 @@ jobs: cache-name: ${{ matrix.cache-name }} continue-on-error: true - - name: Setup python and scons uses: ./.github/actions/godot-deps