diff options
| author | Aiden Grossman <agrossman154@yahoo.com> | 2023-10-24 12:04:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-24 12:04:25 -0700 |
| commit | 888f07031bb6d64fd099516e187ed0bd818c59c3 (patch) | |
| tree | 5d2f783956e3905310b00edd9e2f12b991354e89 /.github/workflows/docs.yml | |
| parent | e1e0598e2032c990763cb1a7eb34572f201666a6 (diff) | |
[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.
Diffstat (limited to '.github/workflows/docs.yml')
| -rw-r--r-- | .github/workflows/docs.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 70b0a29b871e..a0670625bb3e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -19,6 +19,7 @@ on: - 'lldb/docs/**' - 'libunwind/docs/**' - 'libcxx/docs/**' + - 'libc/docs/**' pull_request: paths: - 'llvm/docs/**' @@ -27,6 +28,7 @@ on: - 'lldb/docs/**' - 'libunwind/docs/**' - 'libcxx/docs/**' + - 'libc/docs/**' jobs: check-docs-build: @@ -59,6 +61,8 @@ jobs: - 'libunwind/docs/**' libcxx: - 'libcxx/docs/**' + libc: + - 'libc/docs/**' - name: Fetch LLVM sources (PR) if: ${{ github.event_name == 'pull_request' }} uses: actions/checkout@v4 @@ -107,4 +111,9 @@ jobs: run: | cmake -B libcxx-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libcxxabi;libcxx" -DLLVM_ENABLE_SPHINX=ON ./runtimes TZ=UTC ninja -C libcxx-build docs-libcxx-html + - name: Build libc docs + if: steps.docs-changed-subprojects.outputs.libc_any_changed == 'true' + run: | + cmake -B libc-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libc" -DLLVM_ENABLE_SPHINX=ON ./runtimes + TZ=UTC ninja -C docs-libc-html |
