Skip to content

Commit 888f070

Browse files
[Github] Add support for building libc docs in Github actions (#69824)
This patch adds support for building the libc docs in Github actions. This eanbles easily diagnosing doc build failures/warnings in PRs and at the tip of tree.
1 parent e1e0598 commit 888f070

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
@@ -19,6 +19,7 @@ on:
1919
- 'lldb/docs/**'
2020
- 'libunwind/docs/**'
2121
- 'libcxx/docs/**'
22+
- 'libc/docs/**'
2223
pull_request:
2324
paths:
2425
- 'llvm/docs/**'
@@ -27,6 +28,7 @@ on:
2728
- 'lldb/docs/**'
2829
- 'libunwind/docs/**'
2930
- 'libcxx/docs/**'
31+
- 'libc/docs/**'
3032

3133
jobs:
3234
check-docs-build:
@@ -59,6 +61,8 @@ jobs:
5961
- 'libunwind/docs/**'
6062
libcxx:
6163
- 'libcxx/docs/**'
64+
libc:
65+
- 'libc/docs/**'
6266
- name: Fetch LLVM sources (PR)
6367
if: ${{ github.event_name == 'pull_request' }}
6468
uses: actions/checkout@v4
@@ -107,4 +111,9 @@ jobs:
107111
run: |
108112
cmake -B libcxx-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx" -DLLVM_ENABLE_SPHINX=ON ./runtimes
109113
TZ=UTC ninja -C libcxx-build docs-libcxx-html
114+
- name: Build libc docs
115+
if: steps.docs-changed-subprojects.outputs.libc_any_changed == 'true'
116+
run: |
117+
cmake -B libc-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libc" -DLLVM_ENABLE_SPHINX=ON ./runtimes
118+
TZ=UTC ninja -C docs-libc-html
110119

0 commit comments

Comments
 (0)