summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2022-07-08 21:53:35 +0200
committerCristian Adam <cristian.adam@qt.io>2022-07-14 08:52:36 +0000
commit9c09ade2ede85392f942388e95a199ea81ff7edb (patch)
tree6cb7eca49b38c170e8d691e14d1ef72f98f0854e /.github
parent397ba273cb6ab014f5d65c99b48d1dc68a0c7916 (diff)
downloadqt-creator-9c09ade2ede85392f942388e95a199ea81ff7edb.tar.gz
GitHub Actions: Use software OpenGL driver for tests on Windows
Since some tests are failing due to missing OpenGL context, I assume the GitHub Actions Windows runners do not have OpenGL drivers. Change-Id: I7951f0906d37bc1d513e77540fdd379a71cbed60 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index 39bb74a8df..55a52dc914 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -129,6 +129,18 @@ jobs:
endif()
endif()
+ if ("${{ runner.os }}" STREQUAL "Windows")
+ file(MAKE_DIRECTORY build/build/bin)
+ foreach(retry RANGE 10)
+ file(DOWNLOAD "https://download.qt.io/development_releases/prebuilt/llvmpipe/windows/opengl32sw-64.7z" ./opengl32sw-64.7z SHOW_PROGRESS)
+ file(SIZE ./opengl32sw-64.7z fileSize)
+ if (fileSize GREATER 0)
+ break()
+ endif()
+ endforeach()
+ execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ../../../opengl32sw-64.7z WORKING_DIRECTORY build/build/bin)
+ endif()
+
if (NOT "x${{ matrix.config.toolchain }}" STREQUAL "x")
foreach(retry RANGE 10)
file(DOWNLOAD "${{ matrix.config.toolchain }}" ./toolchain.7z SHOW_PROGRESS)
@@ -594,6 +606,9 @@ jobs:
if ("${{ runner.os }}" STREQUAL "Linux")
set(ENV{QT_QPA_PLATFORM} "offscreen")
+ elseif ("${{ runner.os }}" STREQUAL "Windows")
+ set(ENV{QT_OPENGL} "software")
+ set(ENV{QT_ASSUME_STDERR_HAS_CONSOLE} "1")
endif()
execute_process(