Install Qt X11 runtime dependencies in Linux workflows
Desktop CI / tests (push) Successful in 42s

This commit is contained in:
benya
2026-09-25 15:00:28 +03:00
parent 800e293d5b
commit c4c10d79ca
5 changed files with 25 additions and 20 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
# Runtime libraries used by PySide6/QtGui on Ubuntu, including XCB and OpenGL.
qt_runtime_packages=(
libgl1 libegl1 libxkbcommon0 libxkbcommon-x11-0
libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1
libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-shm0
libxcb-sync1 libxcb-xfixes0 libxcb-xkb1 libxcb-xinerama0
libxcb-util1 libxcb-glx0
libx11-6 libx11-xcb1 libxext6 libxrender1 libsm6 libice6 libxi6
libfontconfig1 libfreetype6 libglib2.0-0
)
if [ "$(id -u)" -eq 0 ]; then
apt-get update
apt-get install -y --no-install-recommends "${qt_runtime_packages[@]}"
else
sudo apt-get update
sudo apt-get install -y --no-install-recommends "${qt_runtime_packages[@]}"
fi