CI jobs on Windows cannot use OpenGL
Summary
Projects which use OpenGL seem to not be able to use OpenGL reliably. This did work at one point, but I have no idea what might have changed (different machine, probably different gitlab-runner version).
Steps to reproduce
Try to use OpenGL in a Windows CI job.
Actual behavior
OpenGL contexts cannot be created.
Expected behavior
OpenGL contexts should work.
Environment description
We're using Windows 10 with gitlab-runner install
running as a user that is set up to auto-login. On one machine, we just had to tell Qt to create an OpenGL context (by default it wanted EGL). On a new machine we set up, no OpenGL context works.
Used GitLab Runner version
We have a patched gitlab-runner to address (unrelated) issues (directory path manipulation and logic to only allow specific projects to use global runners). It is based on 13.5.0 though.
Possible fixes
This article might be useful, though I have no idea how much control over CreateProcess
golang offers.