Create stripped PDB and include it in the nightly builds

This commit is contained in:
Magnus Norddahl 2024-05-09 21:56:58 +02:00
commit cf7be62721
2 changed files with 6 additions and 2 deletions

View file

@ -13,7 +13,7 @@ jobs:
- name: Visual Studio 2022
os: windows-2022
extra_options: -DCMAKE_TOOLCHAIN_FILE=build/vcpkg/scripts/buildsystems/vcpkg.cmake
build_type: Release
build_type: RelWithDebInfo
- name: Visual Studio 2022
os: windows-2022
@ -103,6 +103,7 @@ jobs:
if [[ "${{ runner.os }}" == 'Windows' ]]; then
cp -r ${{ matrix.config.build_type }}/vkdoom.exe ${{ matrix.config.build_type }}/*.pk3 ${{ matrix.config.build_type }}/fm_banks ${{ matrix.config.build_type }}/soundfonts package
cp ../bin/licenses.zip ../bin/windows/libsndfile/64bit/libsndfile-1.dll ../bin/windows/openal/64bit/openal32.dll ../bin/windows/zmusic/64bit/zmusic.dll package
cp ${{ matrix.config.build_type }}/vkdoom-stripped.pdb package/${{ matrix.config.build_type }}/vkdoom.pdb
elif [[ "${{ runner.os }}" == 'macOS' ]]; then
cp -r vkdoom.app package
elif [[ "${{ runner.os }}" == 'Linux' ]]; then
@ -134,7 +135,7 @@ jobs:
- name: Download Windows artifact
uses: actions/download-artifact@v4
with:
name: Visual Studio 2022 Release
name: Visual Studio 2022 RelWithDebInfo
path: build/vkdoom-windows-prerelease
- name: Download Linux artifact

View file

@ -1328,6 +1328,9 @@ if( MSVC )
endif()
set_target_properties(zdoom PROPERTIES LINK_FLAGS ${LINKERSTUFF})
# Create stripped PDBs for nightly builds
set_target_properties(zdoom PROPERTIES LINK_FLAGS_RELWITHDEBINFO /PDBSTRIPPED:${ZDOOM_OUTPUT_DIR}/RelWithDebInfo/${ZDOOM_EXE_NAME}-stripped.pdb)
add_custom_command(TARGET zdoom POST_BUILD
COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\common\\platform\\win32\\manifest.xml\" -outputresource:\"$<TARGET_FILE:zdoom>\"\;\#1
COMMENT "Adding manifest..."