This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
[C++20] [Modules] [Driver] Don't enable -fdelayed-template-parsing by… #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LLVM Documentation CI | |
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
# See https://llvm.org/LICENSE.txt for license information. | |
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
name: "Test documentation build" | |
permissions: | |
contents: read | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'llvm/docs/**' | |
- 'clang/docs/**' | |
- 'clang-tools-extra/docs/**' | |
- 'lldb/docs/**' | |
pull_request: | |
paths: | |
- 'llvm/docs/**' | |
- 'clang/docs/**' | |
- 'clang-tools-extra/docs/**' | |
- 'lldb/docs/**' | |
jobs: | |
check-docs-build: | |
name: "Test documentation build" | |
runs-on: ubuntu-latest | |
steps: | |
# Fetch all the commits in a pull request + 1 so that the | |
# docs-changed-subprojects step won't pull them in itself in an extremely | |
# slow manner. | |
- name: Calculate number of commits to fetch (PR) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: echo "PR_FETCH_DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> "${GITHUB_ENV}" | |
- name: Fetch LLVM sources (PR) | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: ${{ env.PR_FETCH_DEPTH }} | |
- name: Fetch LLVM sources (push) | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Get subprojects that have doc changes | |
id: docs-changed-subprojects | |
uses: tj-actions/changed-files@v39 | |
with: | |
files_yaml: | | |
llvm: | |
- 'llvm/docs/**' | |
clang: | |
- 'clang/docs/**' | |
clang-tools-extra: | |
- 'clang-tools-extra/docs/**' | |
lldb: | |
- 'lldb/docs/**' | |
- name: Setup Python env | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
cache-dependency-path: 'llvm/docs/requirements.txt' | |
- name: Install python dependencies | |
run: pip install -r llvm/docs/requirements.txt | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
# swig and graphviz are lldb specific dependencies | |
sudo apt-get install -y cmake ninja-build swig graphviz | |
- name: Build LLVM docs | |
if: steps.docs-changed-subprojects.outputs.llvm_any_changed == 'true' | |
run: | | |
cmake -B llvm-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_SPHINX=ON ./llvm | |
TZ=UTC ninja -C llvm-build docs-llvm-html docs-llvm-man | |
- name: Build Clang docs | |
if: steps.docs-changed-subprojects.outputs.clang_any_changed == 'true' | |
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 clang-tools-extra docs | |
if: steps.docs-changed-subprojects.outputs.clang-tools-extra_any_changed == 'true' | |
run: | | |
cmake -B clang-tools-extra-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_ENABLE_SPHINX=ON ./llvm | |
TZ=UTC ninja -C clang-tools-extra-build docs-clang-tools-html docs-clang-tools-man | |
- name: Build LLDB docs | |
if: steps.docs-changed-subprojects.outputs.lldb_any_changed == 'true' | |
run: | | |
cmake -B lldb-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_ENABLE_SPHINX=ON ./llvm | |
TZ=UTC ninja -C lldb-build docs-lldb-html docs-lldb-man | |