File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ jobs:
5252 - name : Build on Linux
5353 if : startsWith(matrix.os, 'ubuntu')
5454 run : |
55- schroot --chroot steamrt_scout_i386 -- cmake -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_INSTALL_PREFIX="$PWD/dist"
55+ schroot --chroot steamrt_scout_i386 -- cmake -GNinja - DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_INSTALL_PREFIX="$PWD/dist"
5656 schroot --chroot steamrt_scout_i386 -- cmake --build build --target all
5757 schroot --chroot steamrt_scout_i386 -- cmake --build build --target install
5858 - name : Build on Linux with vgui
5959 if : startsWith(matrix.os, 'ubuntu') && startsWith(matrix.cc, 'gcc')
6060 run : |
61- schroot --chroot steamrt_scout_i386 -- cmake -DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
61+ schroot --chroot steamrt_scout_i386 -- cmake -GNinja - DCMAKE_BUILD_TYPE=Release -DPOLLY=ON -B build-vgui -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DUSE_VGUI=ON -DCMAKE_INSTALL_PREFIX="$PWD/dist-vgui"
6262 cp vgui_support/vgui-dev/lib/vgui.so build-vgui/cl_dll
6363 schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target all
6464 schroot --chroot steamrt_scout_i386 -- cmake --build build-vgui --target install
Original file line number Diff line number Diff line change 6767 - name : Build on Linux
6868 if : startsWith(matrix.os, 'ubuntu')
6969 run : |
70- schroot --chroot steamrt_scout_i386 -- cmake -B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_BUILD_TYPE=${{ github.event.inputs.buildtype }} -DCMAKE_INSTALL_PREFIX="$PWD/dist" -DUSE_VGUI=${{ github.event.inputs.usevgui }}
70+ schroot --chroot steamrt_scout_i386 -- cmake -GNinja - B build -S . -DCMAKE_EXE_LINKER_FLAGS="-Wl,--no-undefined" -DCMAKE_BUILD_TYPE=${{ github.event.inputs.buildtype }} -DCMAKE_INSTALL_PREFIX="$PWD/dist" -DUSE_VGUI=${{ github.event.inputs.usevgui }}
7171 schroot --chroot steamrt_scout_i386 -- cmake --build build --target all
7272 schroot --chroot steamrt_scout_i386 -- cmake --build build --target install
7373
Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ install( TARGETS ${CLDLL_LIBRARY}
233233 GROUP_READ GROUP_EXECUTE
234234 WORLD_READ WORLD_EXECUTE )
235235
236- add_custom_command (TARGET ${CLDLL_LIBRARY}
236+ if (CMAKE_BUILD_TYPE MATCHES "Release" )
237+ add_custom_command (TARGET ${CLDLL_LIBRARY}
237238 POST_BUILD DEPENDS ${CLDLL_LIBRARY}
238- COMMAND $<$<CONFIG:release>:${CMAKE_STRIP} > -s $<TARGET_FILE:${CLDLL_LIBRARY} >)
239+ COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${CLDLL_LIBRARY} >)
240+ endif ()
Original file line number Diff line number Diff line change @@ -196,6 +196,8 @@ install( TARGETS ${SVDLL_LIBRARY}
196196 GROUP_READ GROUP_EXECUTE
197197 WORLD_READ WORLD_EXECUTE)
198198
199- add_custom_command (TARGET ${SVDLL_LIBRARY}
199+ if (CMAKE_BUILD_TYPE MATCHES "Release" )
200+ add_custom_command (TARGET ${SVDLL_LIBRARY}
200201 POST_BUILD DEPENDS ${SVDLL_LIBRARY}
201- COMMAND $<$<CONFIG:release>:${CMAKE_STRIP} > -s $<TARGET_FILE:${SVDLL_LIBRARY} >)
202+ COMMAND ${CMAKE_STRIP} -s $<TARGET_FILE:${SVDLL_LIBRARY} >)
203+ endif ()
Original file line number Diff line number Diff line change 1919#include " vcs_info.h"
2020
2121static cvar_t build_commit = { " sv_game_build_commit" , g_VCSInfo_Commit };
22- static cvar_t build_branch = { " sv_game_build_branch" , g_VCSInfo_Commit };
22+ static cvar_t build_branch = { " sv_game_build_branch" , g_VCSInfo_Branch };
2323
2424cvar_t displaysoundlist = {" displaysoundlist" ," 0" };
2525
You can’t perform that action at this time.
0 commit comments