From 9237f66bc9a0f4eeebe509748351235d132d27f4 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Thu, 27 May 2021 21:35:26 +0200 Subject: [PATCH] GitHub Actions: Fix Ubuntu Linux test runs By using the "offscreen" platform plugin we can get away by not having an X sesion for the default "xcb" plugin. Change-Id: Ie274036f9f3efb2ec37a8dcbc0feb8a847788500 Reviewed-by: Alessandro Portale --- .github/workflows/build_cmake.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index a65437bdd4c..0fcdb68064b 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -508,6 +508,10 @@ jobs: set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON") + if ("${{ runner.os }}" STREQUAL "Linux") + set(ENV{QT_QPA_PLATFORM} "offscreen") + endif() + execute_process( COMMAND ctest -j ${N} --timeout 5 WORKING_DIRECTORY build/build