forked from qt-creator/qt-creator
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:
4
.github/workflows/build_cmake.yml
vendored
4
.github/workflows/build_cmake.yml
vendored
@@ -508,6 +508,10 @@ jobs:
|
|||||||
|
|
||||||
set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
|
set(ENV{CTEST_OUTPUT_ON_FAILURE} "ON")
|
||||||
|
|
||||||
|
if ("${{ runner.os }}" STREQUAL "Linux")
|
||||||
|
set(ENV{QT_QPA_PLATFORM} "offscreen")
|
||||||
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND ctest -j ${N} --timeout 5
|
COMMAND ctest -j ${N} --timeout 5
|
||||||
WORKING_DIRECTORY build/build
|
WORKING_DIRECTORY build/build
|
||||||
|
Reference in New Issue
Block a user