From 7d7784d14009343ba224bcc62291bede711f653c Mon Sep 17 00:00:00 2001
From: Albrecht Schlosser <albrechts.fltk@online.de>
Date: Tue, 9 Aug 2022 21:41:31 +0200
Subject: [PATCH] GitLab CI/CD: generate pdf documentation

Remove build artifacts from normal builds (libs and executables).
  These were never meant to be provided but forgotten to remove
  after tests.

Try to build fltk.pdf (may be removed later)

Store fltk.pdf in 'public' folder to be available online in docs
  and downloadable as "artifact"
---
 .gitlab-ci.yml | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 481ee5372..5d5013fd4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -41,13 +41,6 @@ build-autotools:
     - ./configure --enable-pango --enable-cairo
     - time make -j3
     - cd examples && time make
-  artifacts:
-    paths:
-      - lib/
-      - test/cairo_test
-      - test/glpuzzle
-      - test/unittests
-      - test/fltk-versions
 
 # Build with CMake and Ninja (with pango, cairo, building examples)
 
@@ -70,10 +63,6 @@ build-cmake:
     - date
     - time ninja
     - date
-  artifacts:
-    paths:
-      - build/lib/
-      - build/bin/
 
 # Generate and install HTML documentation
 
@@ -86,7 +75,7 @@ pages:
   # install the necessary build tools
   before_script:
     - date
-    - apt update && apt -y install make autoconf man doxygen
+    - apt update && apt -y install make autoconf man doxygen doxygen-latex
   script:
     - date
     - make clean
@@ -94,9 +83,12 @@ pages:
     - date
     - make && make html
     - date
+    - make pdf
+    - date
     - cd ..
     - mkdir -p public/
     - mv documentation/html/* public/
+    - mv documentation/fltk.pdf public/
     - date
   artifacts:
     paths:
-- 
GitLab