瀏覽代碼

CI: Build test binaries with debug symbols, then strip

This allows having good stacktraces when the tests crash.

(cherry picked from commit c4fa301b6b3b8faa3f14558e5207263b5490213b)
Rémi Verschelde 4 年之前
父節點
當前提交
e2b2319ee5
共有 2 個文件被更改,包括 7 次插入3 次删除
  1. 7 2
      .github/workflows/linux_builds.yml
  2. 0 1
      .github/workflows/windows_builds.yml

+ 7 - 2
.github/workflows/linux_builds.yml

@@ -4,7 +4,7 @@ on: [push, pull_request]
 # Global Settings
 # Global Settings
 env:
 env:
   GODOT_BASE_BRANCH: 3.x
   GODOT_BASE_BRANCH: 3.x
-  SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no
+  SCONSFLAGS: verbose=yes warnings=all werror=yes
 
 
 concurrency:
 concurrency:
   group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
   group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-linux
@@ -42,7 +42,7 @@ jobs:
             cache-name: linux-template-mono
             cache-name: linux-template-mono
             target: release
             target: release
             tools: false
             tools: false
-            sconsflags: module_mono_enabled=yes mono_glue=no
+            sconsflags: module_mono_enabled=yes mono_glue=no debug_symbols=no
             build-mono: false
             build-mono: false
             artifact: true
             artifact: true
 
 
@@ -125,6 +125,11 @@ jobs:
           DRI_PRIME=0 xvfb-run ${{ matrix.bin }} --doctool . 2>&1 > /dev/null || true
           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$'
           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
       - name: Upload artifact
         uses: ./.github/actions/upload-artifact
         uses: ./.github/actions/upload-artifact
         if: ${{ matrix.artifact }}
         if: ${{ matrix.artifact }}

+ 0 - 1
.github/workflows/windows_builds.yml

@@ -41,7 +41,6 @@ jobs:
           cache-name: ${{ matrix.cache-name }}
           cache-name: ${{ matrix.cache-name }}
         continue-on-error: true
         continue-on-error: true
 
 
-
       - name: Setup python and scons
       - name: Setup python and scons
         uses: ./.github/actions/godot-deps
         uses: ./.github/actions/godot-deps