mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 22:30:49 +08:00
ci(docs): skip workflow if docs don't change (#9688)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,10 +1,30 @@
|
|||||||
name: Build docs
|
name: Build docs
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# '**/lv*.h' is not included for pull requests because files in this path
|
||||||
|
# cannot break the doc build, and the purpose of having the docs build for
|
||||||
|
# pull requests is to catch when something breaks the build. No input files
|
||||||
|
# in that path have the capacity to break the doc build.
|
||||||
|
- 'docs/**'
|
||||||
|
- 'examples/**'
|
||||||
|
- 'demos/**'
|
||||||
|
- 'scripts/build_html_examples.sh'
|
||||||
|
- 'scripts/find_version.sh'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- 'release/*'
|
- 'release/*'
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
- 'src/**/lv*.h'
|
||||||
|
- 'examples/**'
|
||||||
|
- 'demos/**'
|
||||||
|
- 'scripts/build_html_examples.sh'
|
||||||
|
- 'scripts/find_version.sh'
|
||||||
|
- 'lv_conf_template.h'
|
||||||
|
- 'lv_version.h'
|
||||||
|
- 'lvgl.h'
|
||||||
|
|
||||||
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
|
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
|
||||||
# Ensure that only one commit will be running tests at a time on each PR
|
# Ensure that only one commit will be running tests at a time on each PR
|
||||||
@@ -42,11 +62,13 @@ jobs:
|
|||||||
!${{ env.pythonLocation }}/lib/python*/site-packages/pip*
|
!${{ env.pythonLocation }}/lib/python*/site-packages/pip*
|
||||||
!${{ env.pythonLocation }}/lib/python*/site-packages/setuptools*
|
!${{ env.pythonLocation }}/lib/python*/site-packages/setuptools*
|
||||||
key: ${{ env.pythonLocation }}-${{ hashFiles('docs/requirements.txt') }}
|
key: ${{ env.pythonLocation }}-${{ hashFiles('docs/requirements.txt') }}
|
||||||
- name: Install Doxygen and Latex dependencies
|
- name: Install Doxygen
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install doxygen texlive-xetex texlive-binaries texlive-lang-english latexmk fonts-freefont-otf
|
sudo apt-get install -y --no-install-recommends doxygen
|
||||||
- name: Install requirements
|
# Remember these for possible future use.
|
||||||
|
# texlive-xetex texlive-binaries texlive-lang-english latexmk fonts-freefont-otf
|
||||||
|
- name: Install Requirements
|
||||||
run: |
|
run: |
|
||||||
pip install -r docs/requirements.txt
|
pip install -r docs/requirements.txt
|
||||||
- name: Setup Emscripten cache
|
- name: Setup Emscripten cache
|
||||||
@@ -75,7 +97,7 @@ jobs:
|
|||||||
run: rm -rf docs/build/html/.doctrees
|
run: rm -rf docs/build/html/.doctrees
|
||||||
- name: Retrieve version
|
- name: Retrieve version
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=VERSION_NAME::$(scripts/find_version.sh)"
|
echo "VERSION_NAME=$(scripts/find_version.sh)" >> "$GITHUB_OUTPUT"
|
||||||
id: version
|
id: version
|
||||||
- name: Deploy to subfolder
|
- name: Deploy to subfolder
|
||||||
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
|
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release/')) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user