diff --git a/.github/workflows/cicd-main.yml b/.github/workflows/cicd-main.yml index 3b10108e6a..5924878e1b 100644 --- a/.github/workflows/cicd-main.yml +++ b/.github/workflows/cicd-main.yml @@ -168,33 +168,9 @@ jobs: run: uv cache prune --ci sphinx-build: - if: ${{ needs.pre-flight.outputs.test_level != 'none' }} - name: Sphinx build needs: [pre-flight] - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: 'recursive' - - name: Install uv - uses: astral-sh/setup-uv@v5 - with: - version: "0.7.2" - enable-cache: true - prune-cache: false - # Faster than uv python install since it caches python alongside runner - - name: "Set up Python" - uses: actions/setup-python@v5 - with: - python-version-file: ".python-version" - - name: build docs - run: | - uv venv - cd docs/ - uv run --group docs sphinx-build --fail-on-warning --builder html . _build/html - - name: Minimize uv cache - run: uv cache prune --ci + if: ${{ needs.pre-flight.outputs.test_level != 'none' }} + uses: NVIDIA-NeMo/FW-CI-templates/.github/workflows/_build_docs.yml@v0.48.0 build-container: if: ${{ needs.pre-flight.outputs.test_level != 'none' }}