llvm-project
67 строк · 1.8 Кб
1name: Release Doxygen2
3permissions:4contents: read5
6on:7workflow_dispatch:8inputs:9release-version:10description: 'Release Version'11required: true12type: string13upload:14description: 'Upload documentation'15required: false16type: boolean17
18workflow_call:19inputs:20release-version:21description: 'Release Version'22required: true23type: string24upload:25description: 'Upload documentation'26required: false27type: boolean28
29jobs:30release-doxygen:31name: Build and Upload Release Doxygen32runs-on: ubuntu-latest33permissions:34contents: write35env:36upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}37steps:38- name: Checkout LLVM39uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.140
41- name: Setup Python env42uses: actions/setup-python@v543with:44cache: 'pip'45cache-dependency-path: './llvm/docs/requirements.txt'46
47- name: Install Dependencies48run: |49sudo apt-get update
50sudo apt-get install -y \
51doxygen \
52graphviz \
53python3-github \
54ninja-build \
55texlive-font-utils
56pip3 install --user -r ./llvm/docs/requirements.txt
57
58- name: Build Doxygen59run: |60./llvm/utils/release/build-docs.sh -release "${{ inputs.release-version }}" -no-sphinx
61
62- name: Upload Doxygen63if: env.upload64env:65GITHUB_TOKEN: ${{ github.token }}66run: |67./llvm/utils/release/github-upload-release.py --token "$GITHUB_TOKEN" --release "${{ inputs.release-version }}" --user "${{ github.actor }}" upload --files ./*doxygen*.tar.xz
68