Skip to content

Commit dec9f7c

Browse files
Quadstronautclaude
andcommitted
CI(linux): run tests with QT_QPA_PLATFORM=offscreen
GitHub runner has no X display, so Qt Test binaries that pull in QGuiApplication abort with "could not connect to display". The offscreen platform plugin is shipped with qt6-base-dev and lets the tests run headless. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0a6ad70 commit dec9f7c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
run: cmake --build build
2929

3030
- name: Test
31+
env:
32+
QT_QPA_PLATFORM: offscreen
3133
run: ctest --test-dir build --output-on-failure
3234

3335
- name: Upload binary artifact

0 commit comments

Comments
 (0)