Skip to content

Commit b464a16

Browse files
committed
Testing offscreen mode
1 parent 2b9a119 commit b464a16

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/qt-build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ jobs:
4040
run: |
4141
sudo apt-get update
4242
sudo apt-get install -y libbluetooth-dev libgl1-mesa-dev
43+
sudo apt-get install -y \
44+
libxcb-cursor0 \
45+
libxcb-cursor-dev \
46+
libxcb-icccm4 \
47+
libxcb-image0 \
48+
libxcb-keysyms1 \
49+
libxcb-randr0 \
50+
libxcb-render-util0 \
51+
libxcb-xinerama0 \
52+
libxcb-xfixes0 \
53+
xvfb \
54+
libgl1-mesa-dev
4355
4456
- name: Verify Qt Installation
4557
run: |
@@ -60,7 +72,9 @@ jobs:
6072

6173
- name: Test
6274
working-directory: qt_app/build
63-
run: ctest -C Release --output-on-failure
75+
run: xvfb-run -a --server-args="-screen 0 1024x768x24" ctest --output-on-failure
76+
env:
77+
QT_QPA_PLATFORM: offscreen
6478

6579
- name: Upload artifacts
6680
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)