25 Commits

Author SHA1 Message Date
Aiden Grossman
3e004d1e8b
[Github] Enable warnings as errors on flang sphinx build (#72723)
Now that the number of warnings in the flang sphinx build has come down
significantly, we can turn on warnings as errors in the sphinx build,
which is the default configuration in CMake.
2024-02-15 11:30:46 -08:00
Aiden Grossman
f086d80d9a [Github] Run documentation test build on change to the workflow
This makes it so that the documentation test build workflow will run
when the workflow itself is changed. This makes it much easier to test
inside of PRs that modify the workflow.
2024-02-15 11:09:52 -08:00
Mark de Wever
7e909d58d1
[libc++][CI] Fixes documentation builder. (#78327)
The documentation CI no longer builds. This is likely introduced by
8f90e6937a1fac80873bb2dab5f382c82ba1ba4e. This fixes the issue.
2024-01-16 20:02:27 +01:00
Craig Hesling
ee94e548a1
[GitHub] Fix minor typos in .github/workflows (#76592)
Fix one spelling typo and remove second newline from end of files.
2024-01-03 10:35:39 -08:00
Aiden Grossman
17fcad7f84
[Github] Build clang docs in CI if autogenerated files change (#72623)
These are unlikely to produce errors in the build, assuming that the
tablegen emitter works as expected, but we're still losing some
documentation build testing coverage but not building upon changes to
these files.
2023-11-24 02:20:58 -08:00
Aiden Grossman
48c5c1b1f9
[Github] Add build Flang docs in CI if autogenerated files change (#72721)
Currently, when changes are made to the tablegen files that build the
docs, the docs build is not tested. This should rarely cause breakages,
but it's cheap to test and there isn't a major reason not to.
2023-11-18 12:17:52 -08:00
Aiden Grossman
83888a5404
[Github] Only run github actions on main monorepo (#69774)
There are currently a couple jobs that run on all forks of LLVM too (if
there is a PR opened, or in the case of the documentation builds, upon
pushing to main). This isn't desired behavior. This commit disables that
behavior, forcing the jobs to not run if they aren't running against
llvm/llvm-project or a PR against that repo.
2023-11-04 00:17:06 -07:00
Aiden Grossman
9189cd6452
[Github] Add flang docs to Github actions (#70530)
This patch enables building the flang docs in Github actions to enable
rapid iteration in PRs and to catch docs build failures more easily
before merge/after merge. This patch currently doesn't fail for Sphinx
warnings, but the intention is to enable this functionality once the
flang docs are fixed to build without warnings after the transition to
Myst.
2023-11-04 00:16:35 -07:00
Aiden Grossman
5cfa03ef25
[Github] Add Polly docs to Github actions (#70531)
This patch enables building the polly docs in CI to catch warnings/build
regressions in the documentation.
2023-10-29 12:49:34 -07:00
Aiden Grossman
66464eb966
[Github] Add OpenMP docs to Github docs action (#70529)
This patch enables building the openmp documentation through Github
actions during PRs and at tip of tree to ensure that the documentation
builds and that there aren't any Sphinx warnings in a manner that
enables more rapid developer iteration without having to install
documentation tooling.
2023-10-29 12:41:09 -07:00
Jinsong Ji
cf07904ee4
[Github] Fix libc docs build (#70363)
https://github.com/llvm/llvm-project/pull/69824 added libc build, but
missed the folder in ninja command, is causing failures.

ninja: fatal: chdir to 'docs-libc-html' - No such file or directory
ninja: Entering directory `docs-libc-html'
2023-10-26 14:26:47 -04:00
Aiden Grossman
68d993e913
[Github] Add lld to docs CI (#69821)
This patch adds the lld documentation to the documentation github
actions CI to automatically validate in PRs/at tip of tree that the docs
build and there aren't any Sphinx warnings. There is existing buildbot
coverage for the lld docs, but this much more convienient to use in
cases like PRs.
2023-10-25 21:55:38 -07:00
Aiden Grossman
888f07031b
[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.
2023-10-24 12:04:25 -07:00
Aiden Grossman
099ce25663 [Github] Fetch before files changed action on push in docs action
My previous commit 397f1ce9efb4eea1ee10fe4833f733b8c7abd878 switched up
the docs github action to use the GH API for pull requests. However,
this breaks the action when pushing to a branch as the Github API can't
provide diffs for commits. This patch fixes that by creating a local
checkout beforehand on push events for determining the changed files.
2023-10-23 22:09:02 -07:00
Aiden Grossman
397f1ce9ef
[Github] Use API to fetch PR diff for docs action (#70001)
People are currently running into issues where the files-changed step
isn't able to find the merge base. This seems to happen more often on
very out of date branches. This patch side steps the issue by just
fetching the diff from the GH API.
2023-10-23 21:34:06 -07:00
Aiden Grossman
6768a3d431
[Github] Add libcxx docs to CI (#69828)
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.
2023-10-23 20:27:08 -07:00
Aiden Grossman
d61e915460
[Github] Add libunwind to docs CI (#69830)
This patch adds the libunwind docs to the Github docs action which
enables easy triage of docs build failures in Github PRs. There is
already buildbot coverage of this configuration, but it is much less
convenient to use in PRs.
2023-10-23 20:24:46 -07:00
Aiden Grossman
6250afe37f [Github] Fetch an additional commit for docs CI on PRs
There still seem to be issues with the files changed step taking a
significant amount of time on PRs. This seems to be occurring on PRs
with one commit and not on PRs with more than one commit which is why I
didn't catch this nuance before. Either way, fetching an additional
commit seems to fix the issue. Requires a little bit of hackiness due to
the fact that you can't do math in the github actions variables.

Will be monitoring this over the next little bit to see if this actually
fixes the problem.

CI stuff is annoying sometimes.
2023-10-21 16:45:20 -07:00
Aiden Grossman
5ce45e9d8e
[Github] Add lldb docs step to Github docs action (#69832)
This patch adds a step to build the lldb docs when they change to the
Github docs action, enabling easy triage of warnings/docs build failures
during the PR process.
2023-10-21 15:42:29 -07:00
Aiden Grossman
40a5044af8
[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.
2023-10-21 15:32:51 -07:00
Aiden Grossman
764c7ae949 [Github] Remove CMake options from docs CI resetting defaults
The SPHINX_OUTPUT_HTML and SPHINX_OUTPUT_MAN CMake flags are by default
set to ON/True in ./llvm/cmake/modules/FindSphinx.cmake, so we don't
need to set them true again within the CMake invocation.
2023-10-21 02:11:15 -07:00
Aiden Grossman
9b381c6a06
[Github] Fetch number of commits in PR for docs action (#69763)
This patches changes the docs action to run a fetch with a depth of the
number of commits in the PR (1 if we're just running against a push
event) which significantly increases the speed of the changed files
event. The changed files event goes from taking ~30m to ~3s without any
noticeable increase in fetch time.
2023-10-20 18:48:40 -07:00
Aiden Grossman
cffb9df10c
[Github] Add steps to build clang docs to CI (#69550)
Recently, support for building the LLVM documentation within Github
actions landed, allowing for easy testing of the docs both pre and post
landing. This patch extends that functionality to clang and adds in
additional support to the docs Github workflow to only build the docs
for the subproject whose documentation has been touched.
2023-10-18 22:58:03 -07:00
Aiden Grossman
8ddca6b2c1 [CI] Fix documentation build CI job
Currently this job fails when trying to install system dependencies as
the apt-get commands are not run with sudo, so they don't have the
appropriate permissions. This does not occur with act which is why it
wasn't caught in the first place. The change has been validated as
fixing the problem against my fork.
2023-10-16 22:48:37 -07:00
Aiden Grossman
12a731b5a4
[CI] Add Github actions job to build LLVM documentation (#69269)
This patch adds in support for building the LLVM documentation through a
Github actions job. This enables catching documentation build failures
earlier and also more easily as the job failure will show up directly on
pull requests. The job currently only builds the documentation for LLVM,
but the plan is to extend it to also build the documentation for other
subprojects when appropriate (i.e., the docs files have changed),
starting with clang.
2023-10-16 22:08:45 -07:00