Commit 1396bc25 authored by Anas Nashif's avatar Anas Nashif
Browse files

ci: integrate requirements into docs workflow.

Integrate into doc workflow.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 5ff07289
Loading
Loading
Loading
Loading
+11 −13
Changes for .github/workflows/doc-build.yml: 11 added lines, 13 removed lines.
Original line number Diff line number Diff line
@@ -110,11 +110,22 @@ jobs:
        pip3 install west==${WEST_VERSION}
        pip3 install cmake==${CMAKE_VERSION}
        pip3 install coverxygen
        pip3 install mlx.traceability strictdoc

    - name: west setup
      run: |
        west init -l .

    - name: prcoess requirements
      run: |
        west update reqmgmt
        pushd ../tools/reqmgmt
        strictdoc export . --formats json
        popd
        cp ../tools/reqmgmt/output/json/index.json doc/requirements/requirements.json
        python3 doc/requirements/create_req.py --json doc/requirements/requirements.json  --output doc/requirements/requirements.dox


    - name: build-docs
      shell: bash
      run: |
@@ -135,17 +146,10 @@ jobs:
        SPHINXOPTS_EXTRA="-q -t publish" \
        make -C doc ${DOC_TARGET}

        # API documentation coverage
        python3 -m coverxygen --xml-dir  doc/_build/html/doxygen/xml/ --src-dir include/ --output doc-coverage.info
        # deprecated page causing issues
        lcov --remove doc-coverage.info \*/deprecated > new.info
        genhtml --no-function-coverage --no-branch-coverage new.info -o coverage-report

    - name: compress-docs
      run: |
        tar --use-compress-program="xz -T0" -cf html-output.tar.xz --directory=doc/_build html
        tar --use-compress-program="xz -T0" -cf api-output.tar.xz --directory=doc/_build html/doxygen/html
        tar --use-compress-program="xz -T0" -cf api-coverage.tar.xz coverage-report

    - name: upload-build
      uses: actions/upload-artifact@v4
@@ -153,12 +157,6 @@ jobs:
        name: html-output
        path: html-output.tar.xz

    - name: upload-api-coverage
      uses: actions/upload-artifact@v4
      with:
        name: api-coverage
        path: api-coverage.tar.xz

    - name: process-pr
      if: github.event_name == 'pull_request'
      run: |