Skip to content

Commit 5ce45e9

Browse files
[Github] Add lldb docs step to Github docs action (#69832)
This patch adds a step to build the lldb docs when they change to the Github docs action, enabling easy triage of warnings/docs build failures during the PR process.
1 parent 40a5044 commit 5ce45e9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/docs.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ on:
1616
- 'llvm/docs/**'
1717
- 'clang/docs/**'
1818
- 'clang-tools-extra/docs/**'
19+
- 'lldb/docs/**'
1920
pull_request:
2021
paths:
2122
- 'llvm/docs/**'
2223
- 'clang/docs/**'
2324
- 'clang-tools-extra/docs/**'
25+
- 'lldb/docs/**'
2426

2527
jobs:
2628
check-docs-build:
@@ -51,6 +53,8 @@ jobs:
5153
- 'clang/docs/**'
5254
clang-tools-extra:
5355
- 'clang-tools-extra/docs/**'
56+
lldb:
57+
- 'lldb/docs/**'
5458
- name: Setup Python env
5559
uses: actions/setup-python@v4
5660
with:
@@ -62,7 +66,8 @@ jobs:
6266
- name: Install system dependencies
6367
run: |
6468
sudo apt-get update
65-
sudo apt-get install -y cmake ninja-build
69+
# swig and graphviz are lldb specific dependencies
70+
sudo apt-get install -y cmake ninja-build swig graphviz
6671
- name: Build LLVM docs
6772
if: steps.docs-changed-subprojects.outputs.llvm_any_changed == 'true'
6873
run: |
@@ -78,4 +83,9 @@ jobs:
7883
run: |
7984
cmake -B clang-tools-extra-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_SPHINX=ON ./llvm
8085
TZ=UTC ninja -C clang-tools-extra-build docs-clang-tools-html docs-clang-tools-man
86+
- name: Build LLDB docs
87+
if: steps.docs-changed-subprojects.outputs.lldb_any_changed == 'true'
88+
run: |
89+
cmake -B lldb-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_ENABLE_SPHINX=ON ./llvm
90+
TZ=UTC ninja -C lldb-build docs-lldb-html docs-lldb-man
8191

0 commit comments

Comments
 (0)