Skip to content

Commit 40a5044

Browse files
[Github] Add clang-tools-extra docs to CI (#69827)
This patch adds the clang-tools-extra docs to the Github CI job that builds docs, enabling the ability to easily ensure the docs build properly without warnings in PRs and at the tip of tree.
1 parent 87dac9f commit 40a5044

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/docs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ on:
1515
paths:
1616
- 'llvm/docs/**'
1717
- 'clang/docs/**'
18+
- 'clang-tools-extra/docs/**'
1819
pull_request:
1920
paths:
2021
- 'llvm/docs/**'
2122
- 'clang/docs/**'
23+
- 'clang-tools-extra/docs/**'
2224

2325
jobs:
2426
check-docs-build:
@@ -47,6 +49,8 @@ jobs:
4749
- 'llvm/docs/**'
4850
clang:
4951
- 'clang/docs/**'
52+
clang-tools-extra:
53+
- 'clang-tools-extra/docs/**'
5054
- name: Setup Python env
5155
uses: actions/setup-python@v4
5256
with:
@@ -69,4 +73,9 @@ jobs:
6973
run: |
7074
cmake -B clang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_SPHINX=ON ./llvm
7175
TZ=UTC ninja -C clang-build docs-clang-html docs-clang-man
76+
- name: Build clang-tools-extra docs
77+
if: steps.docs-changed-subprojects.outputs.clang-tools-extra_any_changed == 'true'
78+
run: |
79+
cmake -B clang-tools-extra-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_SPHINX=ON ./llvm
80+
TZ=UTC ninja -C clang-tools-extra-build docs-clang-tools-html docs-clang-tools-man
7281

0 commit comments

Comments
 (0)