diff --git a/.github/workflows/cmake-windows.yml b/.github/workflows/cmake-windows.yml index 9ea76a7..aa9b43b 100644 --- a/.github/workflows/cmake-windows.yml +++ b/.github/workflows/cmake-windows.yml @@ -44,4 +44,15 @@ jobs: name: BeamMP-Server.exe path: ${{github.workspace}}/build-windows/Release/BeamMP-Server.exe + - name: Build debug + working-directory: ${{github.workspace}}/build-windows + shell: bash + run: | + cmake --build . --config Debug + + - name: Archive debug artifacts + uses: actions/upload-artifact@v2 + with: + name: BeamMP-Server-debug.exe + path: ${{github.workspace}}/build-windows/Debug/BeamMP-Server.exe diff --git a/CMakeLists.txt b/CMakeLists.txt index a2bdb67..6cbe134 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,10 @@ endif() set(SENTRY_BACKEND breakpad) add_subdirectory("deps/sentry-native") +if (MSVC) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /bigobj") +endif () + message(STATUS "Setting compiler flags") if (WIN32)