From 3f2e1594a8f61e38e1a0553613483b2b213e16d1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 14 Apr 2024 14:37:05 +0200 Subject: [PATCH] GitHub script to build FLUID docs --- .github/workflows/build_fluid_docs.yml | 57 ++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/build_fluid_docs.yml diff --git a/.github/workflows/build_fluid_docs.yml b/.github/workflows/build_fluid_docs.yml new file mode 100644 index 0000000000..2b6c2f6e1a --- /dev/null +++ b/.github/workflows/build_fluid_docs.yml @@ -0,0 +1,57 @@ +# +# This script builds the FLUID User Handbook as html directory and pdf +# document on a Linux machine. +# + +name: 'Build FLUID User Handbook' + +# This job must be called explicitly form the 'Actions' tab in GitHub +on: + workflow_dispatch: + inputs: + build-pdf: + type: boolean + description: Build pdf file as well + default: 'true' + +permissions: + contents: read + +jobs: + build-html: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install prerequisites + run: sudo apt-get update -y && sudo apt-get install -y libwayland-dev wayland-protocols libdbus-1-dev libxkbcommon-dev libpango1.0-dev libgtk-3-dev + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/build + run: | + cmake $GITHUB_WORKSPACE \ + -D CMAKE_BUILD_TYPE=Debug \ + -D CMAKE_CXX_STANDARD=11 \ + -D CMAKE_CXX_EXTENSIONS=OFF \ + -D CMAKE_C_FLAGS_INIT="-Wall -Wunused" \ + -D CMAKE_CXX_FLAGS_INIT="-Wall -Wunused -Wsuggest-override" \ + -D FLTK_BUILD_FLTK_OPTIONS=OFF \ + -D FLTK_BUILD_FLUID=ON \ + -D FLTK_BUILD_GL=OFF \ + -D FLTK_BUILD_TEST=OFF \ + -D FLTK_BUILD_FLUID_DOCS=ON + + - name: Build + working-directory: ${{github.workspace}}/build + shell: bash + run: | + cmake --build . --config Debug --target fluid_docs + cmake --build . --config Debug --target fluid_pdf + ls $GITHUB_WORKSPACE/fluid/documentation + ls $GITHUB_WORKSPACE/fluid/documentation/html +