Skip to content

Commit 7c2cf33

Browse files
[Github] Add lldb docs step to Github docs action
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 764c7ae commit 7c2cf33

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
@@ -15,10 +15,12 @@ on:
1515
paths:
1616
- 'llvm/docs/**'
1717
- 'clang/docs/**'
18+
- 'lldb/docs/**'
1819
pull_request:
1920
paths:
2021
- 'llvm/docs/**'
2122
- 'clang/docs/**'
23+
- 'lldb/docs/**'
2224

2325
jobs:
2426
check-docs-build:
@@ -47,6 +49,8 @@ jobs:
4749
- 'llvm/docs/**'
4850
clang:
4951
- 'clang/docs/**'
52+
lldb:
53+
- 'lldb/docs/**'
5054
- name: Setup Python env
5155
uses: actions/setup-python@v4
5256
with:
@@ -58,7 +62,8 @@ jobs:
5862
- name: Install system dependencies
5963
run: |
6064
sudo apt-get update
61-
sudo apt-get install -y cmake ninja-build
65+
# swig and graphviz are lldb specific dependencies
66+
sudo apt-get install -y cmake ninja-build swig graphviz
6267
- name: Build LLVM docs
6368
if: steps.docs-changed-subprojects.outputs.llvm_any_changed == 'true'
6469
run: |
@@ -69,4 +74,9 @@ jobs:
6974
run: |
7075
cmake -B clang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_SPHINX=ON ./llvm
7176
TZ=UTC ninja -C clang-build docs-clang-html docs-clang-man
77+
- name: Build LLDB docs
78+
if: steps.docs-changed-subprojects.outputs.lldb_any_changed == 'true'
79+
run: |
80+
cmake -B lldb-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_ENABLE_SPHINX=ON ./llvm
81+
TZ=UTC ninja -C lldb-build docs-lldb-html docs-lldb-man
7282

0 commit comments

Comments
 (0)