[llvm] [Github] Add libcxx docs to CI (PR #69828)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 23 20:26:54 PDT 2023


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/69828

>From a99c11552e1c8683572f961dbcf0d8105576f7e4 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Sat, 21 Oct 2023 02:44:46 -0700
Subject: [PATCH] [Github] Add libcxx docs to CI

This patch adds a step to the documentation Github action to build the
libc++ docs if they have changed. This enables easily diagnosing build
failures/warnings in PRs.
---
 .github/workflows/docs.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 87a9711c655e702..6ee66c938cdf543 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -18,6 +18,7 @@ on:
       - 'clang-tools-extra/docs/**'
       - 'lldb/docs/**'
       - 'libunwind/docs/**'
+      - 'libcxx/docs/**'
   pull_request:
     paths:
       - 'llvm/docs/**'
@@ -25,6 +26,7 @@ on:
       - 'clang-tools-extra/docs/**'
       - 'lldb/docs/**'
       - 'libunwind/docs/**'
+      - 'libcxx/docs/**'
 
 jobs:
   check-docs-build:
@@ -62,6 +64,8 @@ jobs:
               - 'lldb/docs/**'
             libunwind:
               - 'libunwind/docs/**'
+            libcxx:
+              - 'libcxx/docs/**'
       - name: Setup Python env
         uses: actions/setup-python at v4
         with:
@@ -100,4 +104,9 @@ jobs:
         run: |
           cmake -B libunwind-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_RUNTIMES="libunwind" -DLLVM_ENABLE_SPHINX=ON ./runtimes
           TZ=UTC ninja -C libunwind-build docs-libunwind-html
+      - name: Build libcxx docs
+        if: steps.docs-changed-subprojects.outputs.libcxx_any_changed == 'true'
+        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
 



More information about the llvm-commits mailing list