CI: Build test binaries with debug symbols, then strip
This allows having good stacktraces when the tests crash.
This commit is contained in:
parent
c1e6c2c49a
commit
c4fa301b6b
10
.github/workflows/linux_builds.yml
vendored
10
.github/workflows/linux_builds.yml
vendored
@ -4,7 +4,7 @@ on: [push, pull_request]
|
|||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
GODOT_BASE_BRANCH: master
|
GODOT_BASE_BRANCH: master
|
||||||
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes
|
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=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
|
||||||
@ -23,7 +23,6 @@ jobs:
|
|||||||
target: release_debug
|
target: release_debug
|
||||||
tools: true
|
tools: true
|
||||||
tests: true
|
tests: true
|
||||||
sconsflags: ""
|
|
||||||
doc-test: true
|
doc-test: true
|
||||||
bin: "./bin/godot.linuxbsd.opt.tools.64"
|
bin: "./bin/godot.linuxbsd.opt.tools.64"
|
||||||
artifact: true
|
artifact: true
|
||||||
@ -44,7 +43,7 @@ jobs:
|
|||||||
target: release
|
target: release
|
||||||
tools: false
|
tools: false
|
||||||
tests: false
|
tests: false
|
||||||
sconsflags: module_mono_enabled=yes mono_glue=no
|
sconsflags: module_mono_enabled=yes mono_glue=no debug_symbols=no
|
||||||
artifact: true
|
artifact: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -127,6 +126,11 @@ jobs:
|
|||||||
VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json DRI_PRIME=0 xvfb-run ${{ matrix.bin }} 40 --audio-driver Dummy --path test_project 2>&1 | tee sanitizers_log.txt || true
|
VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json DRI_PRIME=0 xvfb-run ${{ matrix.bin }} 40 --audio-driver Dummy --path test_project 2>&1 | tee sanitizers_log.txt || true
|
||||||
misc/scripts/check_ci_log.py sanitizers_log.txt
|
misc/scripts/check_ci_log.py sanitizers_log.txt
|
||||||
|
|
||||||
|
- 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 }}
|
||||||
|
7
.github/workflows/macos_builds.yml
vendored
7
.github/workflows/macos_builds.yml
vendored
@ -4,7 +4,7 @@ on: [push, pull_request]
|
|||||||
# Global Settings
|
# Global Settings
|
||||||
env:
|
env:
|
||||||
GODOT_BASE_BRANCH: master
|
GODOT_BASE_BRANCH: master
|
||||||
SCONSFLAGS: verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes
|
SCONSFLAGS: verbose=yes warnings=extra werror=yes module_text_server_fb_enabled=yes
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-macos
|
||||||
@ -30,6 +30,7 @@ jobs:
|
|||||||
target: release
|
target: release
|
||||||
tools: false
|
tools: false
|
||||||
tests: false
|
tests: false
|
||||||
|
sconsflags: debug_symbols=no
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -58,6 +59,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
${{ matrix.bin }} --test
|
${{ matrix.bin }} --test
|
||||||
|
|
||||||
|
- name: Prepare artifact
|
||||||
|
run: |
|
||||||
|
strip bin/godot.*
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: ./.github/actions/upload-artifact
|
uses: ./.github/actions/upload-artifact
|
||||||
with:
|
with:
|
||||||
|
9
.github/workflows/windows_builds.yml
vendored
9
.github/workflows/windows_builds.yml
vendored
@ -5,7 +5,7 @@ on: [push, pull_request]
|
|||||||
# SCONS_CACHE for windows must be set in the build environment
|
# SCONS_CACHE for windows must be set in the build environment
|
||||||
env:
|
env:
|
||||||
GODOT_BASE_BRANCH: master
|
GODOT_BASE_BRANCH: master
|
||||||
SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no module_text_server_fb_enabled=yes
|
SCONSFLAGS: verbose=yes warnings=all werror=yes module_text_server_fb_enabled=yes
|
||||||
SCONS_CACHE_MSVC_CONFIG: true
|
SCONS_CACHE_MSVC_CONFIG: true
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
@ -33,6 +33,7 @@ jobs:
|
|||||||
target: release
|
target: release
|
||||||
tools: false
|
tools: false
|
||||||
tests: false
|
tests: false
|
||||||
|
sconsflags: debug_symbols=no
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -50,7 +51,7 @@ jobs:
|
|||||||
- name: Compilation
|
- name: Compilation
|
||||||
uses: ./.github/actions/godot-build
|
uses: ./.github/actions/godot-build
|
||||||
with:
|
with:
|
||||||
sconsflags: ${{ env.SCONSFLAGS }}
|
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
|
||||||
platform: windows
|
platform: windows
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
tools: ${{ matrix.tools }}
|
tools: ${{ matrix.tools }}
|
||||||
@ -63,6 +64,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
${{ matrix.bin }} --test
|
${{ matrix.bin }} --test
|
||||||
|
|
||||||
|
- name: Prepare artifact
|
||||||
|
run: |
|
||||||
|
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: ./.github/actions/upload-artifact
|
uses: ./.github/actions/upload-artifact
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user