diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-12-30 17:41:51 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2025-12-30 17:41:51 +0100 |
| commit | 30a3054202d170830453fe9a00f37b2b4b45bc5c (patch) | |
| tree | 129b1f0417fbafb1e43679f4087dae61c4891d3e | |
| parent | d5ed1366420fd9555fb9cf6602f3023e8465b7c1 (diff) | |
Update GitLab CI build for screenshot generation
Use Xvfb to create an X11 display (server).
Thanks to Matthias: copied from GitHub CI build
| -rw-r--r-- | .gitlab-ci.yml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 848b58350..c774fab6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -63,6 +63,7 @@ pages: - apt update && apt -y install build-essential cmake ninja-build git man doxygen-latex - apt -y install freeglut3-dev libfontconfig-dev libxft-dev libglew-dev libxcursor-dev libxinerama-dev libasound2-dev libcairo2-dev libpango1.0-dev - apt -y install libwayland-dev wayland-protocols libxkbcommon-dev libdbus-1-dev libdecor-0-dev libgtk-3-dev + - apt -y install xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps script: - date - pwd @@ -70,9 +71,13 @@ pages: - doxygen --version - mkdir build && cd build - cmake -G Ninja -D CMAKE_BUILD_TYPE=Debug -D FLTK_OPTION_CAIRO_WINDOW=ON .. - - date - - time ninja html - - time ninja pdf + - echo "start Xvfb ..." + - Xvfb :19 -screen 0 1024x768x16 & + - export DISPLAY=:19 + - echo "generate HTML docs ..." + - date; time ninja html + - echo "generate PDF docs ..." + - date; time ninja pdf - date - cd .. - pwd @@ -83,5 +88,5 @@ pages: artifacts: paths: - public - # keep artifacts of the latest three weekly builds + # keep artifacts of the latest three weeks expire_in: 20 days |
