From afc253cc497950e840a3de3c3a3e7e99318ba700 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Thu, 30 Sep 2021 11:48:44 +0200 Subject: [PATCH] Run headless client in CI --- .github/workflows/build.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 940ae6c4d..27c84e9ed 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -100,6 +100,20 @@ jobs: ${{ matrix.cmake-path }}cmake --build . --config Release --target run_tests ${{ matrix.build-args }} ./DDNet-Server shutdown + - name: Build headless client + env: ${{ matrix.env }} + run: | + mkdir headless + cd headless + ${{ matrix.cmake-path }}cmake --version + ${{ matrix.cmake-path }}cmake ${{ matrix.cmake-args }} -DHEADLESS_CLIENT=ON -DCMAKE_BUILD_TYPE=Debug -Werror=dev -DDOWNLOAD_GTEST=ON -DDEV=ON -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG=. .. + ${{ matrix.cmake-path }}cmake --build . --config Debug ${{ matrix.build-args }} + - name: Test headless client + run: | + cd headless + ./DDNet-Server & + ./DDNet "cl_download_skins 0;connect localhost:8303;quit" + - name: Build in release mode with debug info and all features on if: matrix.fancy env: ${{ matrix.env }}