From 977f372c80d3c22ca13a556fc283009a4260b3bd Mon Sep 17 00:00:00 2001
From: Toni Uhlig <matzeton@googlemail.com>
Date: Thu, 7 Oct 2021 15:31:45 +0200
Subject: Fix `make dist` and add it to the CI along with `make -C doc text`.
 Fixes #1324

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
---
 .github/workflows/build.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

(limited to '.github')

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d98d40818..e818f57f6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -115,6 +115,7 @@ jobs:
           sudo apt-get update
           sudo apt-get install autoconf automake libtool pkg-config gettext libjson-c-dev flex bison libpcap-dev
           sudo apt-get install gcc-mingw-w64 libc6-dev
+          sudo apt-get install doxygen python3-sphinx python3-sphinx-rtd-theme python3-breathe python3-pip
       - name: Install Ubuntu Prerequisites (libgcrypt)
         if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.arch, 'x86_64') && !startsWith(matrix.gcrypt, '--disable-gcrypt')
         run: |
@@ -188,6 +189,16 @@ jobs:
         if: startsWith(matrix.arch, 'x86_64')
         run: |
           ./tests/do-dga.sh
+      - name: Generate tarball
+        if: startsWith(matrix.os, 'ubuntu-latest') && startsWith(matrix.arch, 'x86_64')
+        run: |
+          make dist
+      - name: Generate documentation
+        if: startsWith(matrix.os, 'ubuntu-latest') && startsWith(matrix.arch, 'x86_64')
+        run: |
+          pip3 install --user sphinxcontrib.swaggerdoc
+          make -C doc text
+          make -C doc html
       - name: Configure nDPI [Mingw-w64] (runs only on ubuntu jobs)
         if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.arch, 'x86_64')
         run: |
-- 
cgit v1.2.3