Skip to content

Commit 5cfa03e

Browse files
[Github] Add Polly docs to Github actions (#70531)
This patch enables building the polly docs in CI to catch warnings/build regressions in the documentation.
1 parent 66464eb commit 5cfa03e

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
@@ -22,6 +22,7 @@ on:
2222
- 'libc/docs/**'
2323
- 'lld/docs/**'
2424
- 'openmp/docs/**'
25+
- 'polly/docs/**'
2526
pull_request:
2627
paths:
2728
- 'llvm/docs/**'
@@ -33,6 +34,7 @@ on:
3334
- 'libc/docs/**'
3435
- 'lld/docs/**'
3536
- 'openmp/docs/**'
37+
- 'polly/docs/**'
3638

3739
jobs:
3840
check-docs-build:
@@ -71,6 +73,8 @@ jobs:
7173
- 'lld/docs/**'
7274
openmp:
7375
- 'openmp/docs/**'
76+
polly:
77+
- 'polly/docs/**'
7478
- name: Fetch LLVM sources (PR)
7579
if: ${{ github.event_name == 'pull_request' }}
7680
uses: actions/checkout@v4
@@ -134,4 +138,9 @@ jobs:
134138
run: |
135139
cmake -B openmp-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;openmp" -DLLVM_ENABLE_SPHINX=ON ./llvm
136140
TZ=UTC ninja -C openmp-build docs-openmp-html
141+
- name: Build Polly docs
142+
if: steps.docs-changed-subprojects.outputs.polly_any_changed == 'true'
143+
run: |
144+
cmake -B polly-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="polly" -DLLVM_ENABLE_SPHINX=ON ./llvm
145+
TZ=UTC ninja -C polly-build docs-polly-html docs-polly-man
137146

0 commit comments

Comments
 (0)