aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAiden Grossman <agrossman154@yahoo.com>2023-10-21 15:32:51 -0700
committerGitHub <noreply@github.com>2023-10-21 15:32:51 -0700
commit40a5044af8b1106c45bfaf5791391d5ec66d5bbe (patch)
treeb8f564b365bcc24dc80b767427040c46c94ca1bd /.github
parent87dac9f1682c389c9feee6358263b049f1ad27d9 (diff)
downloadllvm-40a5044af8b1106c45bfaf5791391d5ec66d5bbe.zip
llvm-40a5044af8b1106c45bfaf5791391d5ec66d5bbe.tar.gz
llvm-40a5044af8b1106c45bfaf5791391d5ec66d5bbe.tar.bz2
[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.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docs.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 2900f73..6d91112 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -15,10 +15,12 @@ on:
paths:
- 'llvm/docs/**'
- 'clang/docs/**'
+ - 'clang-tools-extra/docs/**'
pull_request:
paths:
- 'llvm/docs/**'
- 'clang/docs/**'
+ - 'clang-tools-extra/docs/**'
jobs:
check-docs-build:
@@ -47,6 +49,8 @@ jobs:
- 'llvm/docs/**'
clang:
- 'clang/docs/**'
+ clang-tools-extra:
+ - 'clang-tools-extra/docs/**'
- name: Setup Python env
uses: actions/setup-python@v4
with:
@@ -69,4 +73,9 @@ jobs:
run: |
cmake -B clang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang" -DLLVM_ENABLE_SPHINX=ON ./llvm
TZ=UTC ninja -C clang-build docs-clang-html docs-clang-man
+ - name: Build clang-tools-extra docs
+ if: steps.docs-changed-subprojects.outputs.clang-tools-extra_any_changed == 'true'
+ run: |
+ cmake -B clang-tools-extra-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_SPHINX=ON ./llvm
+ TZ=UTC ninja -C clang-tools-extra-build docs-clang-tools-html docs-clang-tools-man