diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/cmake.yml | 14 | ||||
-rw-r--r-- | .github/workflows/gdbscript | 8 |
2 files changed, 19 insertions, 3 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 |