Skip to content

Commit 66464eb

Browse files
[Github] Add OpenMP docs to Github docs action (#70529)
This patch enables building the openmp documentation through Github actions during PRs and at tip of tree to ensure that the documentation builds and that there aren't any Sphinx warnings in a manner that enables more rapid developer iteration without having to install documentation tooling.
1 parent 5eb65ca commit 66464eb

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
@@ -21,6 +21,7 @@ on:
2121
- 'libcxx/docs/**'
2222
- 'libc/docs/**'
2323
- 'lld/docs/**'
24+
- 'openmp/docs/**'
2425
pull_request:
2526
paths:
2627
- 'llvm/docs/**'
@@ -31,6 +32,7 @@ on:
3132
- 'libcxx/docs/**'
3233
- 'libc/docs/**'
3334
- 'lld/docs/**'
35+
- 'openmp/docs/**'
3436

3537
jobs:
3638
check-docs-build:
@@ -67,6 +69,8 @@ jobs:
6769
- 'libc/docs/**'
6870
lld:
6971
- 'lld/docs/**'
72+
openmp:
73+
- 'openmp/docs/**'
7074
- name: Fetch LLVM sources (PR)
7175
if: ${{ github.event_name == 'pull_request' }}
7276
uses: actions/checkout@v4
@@ -125,4 +129,9 @@ jobs:
125129
run: |
126130
cmake -B lld-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="lld" -DLLVM_ENABLE_SPHINX=ON ./llvm
127131
TZ=UTC ninja -C lld-build docs-lld-html
132+
- name: Build OpenMP docs
133+
if: steps.docs-changed-subprojects.outputs.openmp_any_changed == 'true'
134+
run: |
135+
cmake -B openmp-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;openmp" -DLLVM_ENABLE_SPHINX=ON ./llvm
136+
TZ=UTC ninja -C openmp-build docs-openmp-html
128137

0 commit comments

Comments
 (0)