diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3a13f55..fb0d3fe 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -28,3 +28,25 @@ jobs: - name: Run tests working-directory: ${{runner.workspace}}/build run: ctest . --output-on-failure + Docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Prepare environment + run: | + apt update + apt install -y --no-install-recommends build-essential cmake ninja-build doxygen python3-sphinx + pip3 install breathe + + - name: Configure build + working-directory: ${{runner.workspace}} + run: | + cmake . -B${{runner.workspace}}/build \ + -G"Ninja" \ + -DCMAKE_BUILD_TYPE=Release \ + -DSKULLC_WITH_DOCS=ON + + - name: Build docs + working-directory: ${{runner.workspace}}/build + run: ninja Sphinx