diff options
-rw-r--r-- | .github/workflows/cmake.yml | 14 | ||||
-rw-r--r-- | .github/workflows/gdbscript | 8 | ||||
-rw-r--r-- | userconfig-runner@Linux-GNU.cmake | 12 |
3 files changed, 26 insertions, 8 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 69d266ce..bc37c112 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -38,9 +38,10 @@ jobs: - name: Install Linux Dependencies run: | - set -e - sudo apt update - sudo apt install libopencv-dev libgl-dev g++-12 ninja-build + sudo apt -q=2 update + sudo apt install g++-12 gdb ninja-build + sudo apt -q install libgl1-mesa-dri libgl-dev libglx-dev xorg-dev xvfb libopencv-dev + sudo apt -q install libsdl2-dev if: matrix.os == 'ubuntu-22.04' - name: Configure @@ -49,6 +50,13 @@ jobs: - name: Build run: ${{matrix.cmake}} --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install + - name: Test + run: | + cd ${{github.workspace}}/build/install + export LD_LIBRARY_PATH="$PWD/lib" + xvfb-run gdb -batch -x ../../.github/workflows/gdbscript bin/floormat-test </dev/null + if: matrix.os == 'ubuntu-22.04' + # - name: Upload build # uses: actions/upload-artifact@v2.2.4 # with: diff --git a/.github/workflows/gdbscript b/.github/workflows/gdbscript new file mode 100644 index 00000000..6daff621 --- /dev/null +++ b/.github/workflows/gdbscript @@ -0,0 +1,8 @@ +#!/usr/bin/env false + +run +if $_isvoid ($_exitsignal) + quit $_exitcode +end +bt +quit 1 diff --git a/userconfig-runner@Linux-GNU.cmake b/userconfig-runner@Linux-GNU.cmake index 14135be1..d1a9864d 100644 --- a/userconfig-runner@Linux-GNU.cmake +++ b/userconfig-runner@Linux-GNU.cmake @@ -1,22 +1,24 @@ sets(BOOL FLOORMAT_PRECOMPILED-HEADERS OFF) +sets(BOOL FLOORMAT_SUBMODULE-SDL2 OFF) +sets(STRING CMAKE_BUILD_TYPE DEBUG) # for floormat sources only function(fm-userconfig-src) - add_compile_options( - -Wall -Wextra -Wpedantic -Wno-old-style-cast -Wno-padded - ) + add_compile_options(-Wall -Wextra -Wpedantic -Wno-old-style-cast -Wno-padded) + add_compile_options(-g -ggdb) + add_compile_options( -Wall -Wextra -Wpedantic #-Weverything - -Wno-c++20-compat + #-Wno-c++20-compat -Wno-switch-enum #-Wno-old-style-cast #-Wno-shadow -Wno-ctad-maybe-unsupported -Wno-ignored-attributes - -Wno-array-bounds + #-Wno-array-bounds -Wno-subobject-linkage ) add_compile_options( |