mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 17:45:07 +08:00
[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.
This commit is contained in:
9
.github/workflows/docs.yml
vendored
9
.github/workflows/docs.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user