Skip to content

Commit 68d993e

Browse files
[Github] Add lld to docs CI (#69821)
This patch adds the lld documentation to the documentation github actions CI to automatically validate in PRs/at tip of tree that the docs build and there aren't any Sphinx warnings. There is existing buildbot coverage for the lld docs, but this much more convienient to use in cases like PRs.
1 parent fa18827 commit 68d993e

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
@@ -20,6 +20,7 @@ on:
2020
- 'libunwind/docs/**'
2121
- 'libcxx/docs/**'
2222
- 'libc/docs/**'
23+
- 'lld/docs/**'
2324
pull_request:
2425
paths:
2526
- 'llvm/docs/**'
@@ -29,6 +30,7 @@ on:
2930
- 'libunwind/docs/**'
3031
- 'libcxx/docs/**'
3132
- 'libc/docs/**'
33+
- 'lld/docs/**'
3234

3335
jobs:
3436
check-docs-build:
@@ -63,6 +65,8 @@ jobs:
6365
- 'libcxx/docs/**'
6466
libc:
6567
- 'libc/docs/**'
68+
lld:
69+
- 'lld/docs/**'
6670
- name: Fetch LLVM sources (PR)
6771
if: ${{ github.event_name == 'pull_request' }}
6872
uses: actions/checkout@v4
@@ -116,4 +120,9 @@ jobs:
116120
run: |
117121
cmake -B libc-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libc" -DLLVM_ENABLE_SPHINX=ON ./runtimes
118122
TZ=UTC ninja -C docs-libc-html
123+
- name: Build LLD docs
124+
if: steps.docs-changed-subprojects.outputs.lld_any_changed == 'true'
125+
run: |
126+
cmake -B lld-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="lld" -DLLVM_ENABLE_SPHINX=ON ./llvm
127+
TZ=UTC ninja -C lld-build docs-lld-html
119128

0 commit comments

Comments
 (0)