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 <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2021-05-27 21:35:26 +02:00
parent 4a1e195978
commit 9237f66bc9

View File

@@ -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