[llvm] [Github] Add support for building libc docs in Github actions (PR #69824)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 20:32:54 PDT 2023
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/69824
>From a853975417c35f658056628e36656ce834581ec2 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Sat, 21 Oct 2023 02:15:51 -0700
Subject: [PATCH 1/2] [Github] Add support for building libc docs in Github
actions
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.
---
.github/workflows/docs.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 2900f73c77c5a66..aa82043e62eb561 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -15,10 +15,12 @@ on:
paths:
- 'llvm/docs/**'
- 'clang/docs/**'
+ - 'libc/docs/**'
pull_request:
paths:
- 'llvm/docs/**'
- 'clang/docs/**'
+ - 'libc/docs/**'
jobs:
check-docs-build:
@@ -47,6 +49,8 @@ jobs:
- 'llvm/docs/**'
clang:
- 'clang/docs/**'
+ libc:
+ - 'libc/docs/**'
- name: Setup Python env
uses: actions/setup-python at v4
with:
@@ -69,4 +73,10 @@ 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 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 libc-build docs-libc-html
+
>From 1ae287500628fc02f452981c3a97facc4abad11b Mon Sep 17 00:00:00 2001
From: Aiden Grossman <agrossman154 at yahoo.com>
Date: Mon, 23 Oct 2023 20:32:42 -0700
Subject: [PATCH 2/2] Address some reviewer feedback
---
.github/workflows/docs.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index aa82043e62eb561..1a3a8f52bfedb98 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -77,6 +77,6 @@ jobs:
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 libc-build docs-libc-html
+ TZ=UTC ninja -C docs-libc-html
More information about the llvm-commits
mailing list