mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 14:32:44 +08:00
90f374e8c2
Arduino Lint / lint (push) Has been cancelled
Build Examples with C++ Compiler / build-examples (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build ESP IDF ESP32S3 (push) Has been cancelled
C/C++ CI / Run tests with 32bit build (push) Has been cancelled
C/C++ CI / Run tests with 64bit build (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify GDB constants are up-to-date / verify-gdb-consts (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Compare file templates with file names / template-check (push) Has been cancelled
Build Docs / build-and-deploy (push) Has been cancelled
Build .deb packages / build (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Install LVGL using CMake / build-examples (private) (push) Has been cancelled
Install LVGL using CMake / build-examples (public) (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled
Check Makefile for UEFI / Build using Makefile for UEFI (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/benchmark_results_comment/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/filter_docker_logs/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/serialize_results/test.sh) (push) Has been cancelled
Hardware Performance Test / Hardware Performance Benchmark (push) Has been cancelled
Hardware Performance Test / HW Benchmark - Save PR Number (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Has been cancelled
Port repo release update / run-release-branch-updater (push) Has been cancelled
Static Checks / Static Checks (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 32b - lv_conf_perf32b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 64b - lv_conf_perf64b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Save PR Number (push) Has been cancelled
184 lines
6.2 KiB
YAML
184 lines
6.2 KiB
YAML
name: Build Docs
|
|
|
|
on:
|
|
workflow_dispatch: # allow manual triggering
|
|
inputs:
|
|
deploy:
|
|
description: 'Deploy after build'
|
|
default: 'false'
|
|
type: choice
|
|
options:
|
|
- 'false'
|
|
- 'true'
|
|
pull_request:
|
|
paths:
|
|
- 'docs/**'
|
|
- 'src/**'
|
|
- 'examples/**'
|
|
- 'demos/**'
|
|
- 'configs/ci/docs/**'
|
|
- 'scripts/build_html_examples.sh'
|
|
- 'scripts/find_version.sh'
|
|
- 'lv_conf_template.h'
|
|
- 'lv_version.h'
|
|
- 'lvgl.h'
|
|
- '.github/workflows/compile_docs.yml'
|
|
push:
|
|
branches:
|
|
- master
|
|
- 'release/*'
|
|
paths:
|
|
- 'docs/**'
|
|
- 'src/**'
|
|
- 'examples/**'
|
|
- 'demos/**'
|
|
- 'configs/ci/docs/**'
|
|
- 'scripts/build_html_examples.sh'
|
|
- 'scripts/find_version.sh'
|
|
- 'lv_conf_template.h'
|
|
- 'lv_version.h'
|
|
- 'lvgl.h'
|
|
- '.github/workflows/compile_docs.yml'
|
|
|
|
# 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
|
|
concurrency:
|
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
EM_VERSION: 2.0.4
|
|
EM_CACHE_FOLDER: 'emsdk-cache'
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Emscripten cache
|
|
id: cache-system-libraries
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: ${{env.EM_CACHE_FOLDER}}
|
|
key: ${{env.EM_VERSION}}-${{ runner.os }}
|
|
|
|
- uses: mymindstorm/setup-emsdk@v16
|
|
with:
|
|
version: ${{env.EM_VERSION}}
|
|
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
|
|
|
|
- name: ccache
|
|
uses: hendrikmuhs/ccache-action@v1
|
|
|
|
- name: Build examples (with cache)
|
|
run: |
|
|
# Grab the current name in case the LVGL folder is not called lvgl
|
|
# as it could be the case if this is running from a fork
|
|
LVGL_FOLDER=$(pwd)
|
|
# Move to the parent folder to fetch emscripten port.
|
|
cd ..
|
|
./lvgl/scripts/build_html_examples.sh --symlink $LVGL_FOLDER
|
|
|
|
- name: Install Doxygen
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends doxygen
|
|
|
|
# Parses the source code and generates XML files from the documentation
|
|
- name: Generate Doxygen XML
|
|
run: |
|
|
cd docs
|
|
doxygen
|
|
|
|
# Tool used to convert Doxygen XML to .mdx API pages
|
|
- name: Install doxymark
|
|
run: |
|
|
npm install github:mutahharmkhan/doxymark#multi-root-prefix
|
|
|
|
# Generate Documentation API pages
|
|
- name: Generate API pages
|
|
run: |
|
|
npx doxymark \
|
|
--input docs/doxygen/xml \
|
|
--output docs/src \
|
|
--index docs/src/api-index.json \
|
|
--preset fumadocs \
|
|
--auto-group \
|
|
--root api=./include/lvgl \
|
|
--root api-private=./src \
|
|
--source-url-for api=https://github.com/lvgl/lvgl/tree/${{ github.sha }}/include/lvgl \
|
|
--source-url-for api-private=https://github.com/lvgl/lvgl/tree/${{ github.sha }}/src \
|
|
--root-title api=API \
|
|
--root-title 'api-private=API Private' \
|
|
--drop-empty-files
|
|
rm -rf docs/doxygen
|
|
|
|
- name: Install Example Documentation
|
|
run: npm i @lvgl/examples-generator
|
|
|
|
- name: Check Example Documentation
|
|
run: |
|
|
npx -p @lvgl/examples-generator lvgl-examples-check-about --src examples
|
|
npx -p @lvgl/examples-generator lvgl-examples-check-examples --src examples
|
|
|
|
- name: Generate Example Documentation
|
|
run: |
|
|
npx -p @lvgl/examples-generator lvgl-examples-gen \
|
|
--src examples \
|
|
--out docs/src/examples
|
|
|
|
- name: Install mdx linter
|
|
run: npm i @lvgl/mdx-lint
|
|
|
|
- name: Run mdx linter
|
|
run: |
|
|
npx @lvgl/mdx-lint "docs/**/*.{md,mdx}" \
|
|
--fail-on-warning \
|
|
--reporter github
|
|
|
|
- name: Retrieve version
|
|
id: version
|
|
run: |
|
|
echo "VERSION_NAME=$(scripts/find_version.sh)" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Deploy Specific Version
|
|
if: >
|
|
startsWith(github.ref, 'refs/heads/release/') &&
|
|
(github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true'))
|
|
run: |
|
|
git clone https://lvgl-bot:${{ secrets.LVGL_BOT_TOKEN }}@github.com/lvgl/open-docs.git /tmp/open-docs
|
|
rm -rf /tmp/open-docs/${{ steps.version.outputs.VERSION_NAME }}
|
|
mkdir -p /tmp/open-docs/${{ steps.version.outputs.VERSION_NAME }}
|
|
cp -r docs/. /tmp/open-docs/${{ steps.version.outputs.VERSION_NAME }}/
|
|
cd /tmp/open-docs
|
|
git config user.name lvgl-bot
|
|
git config user.email lvgl-bot@users.noreply.github.com
|
|
git add .
|
|
git diff --cached --quiet || git commit -m "Deploy ${{ steps.version.outputs.VERSION_NAME }} ${{ github.sha }}"
|
|
git push
|
|
|
|
- name: Deploy Latest
|
|
if: >
|
|
github.ref == 'refs/heads/master' &&
|
|
(github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.deploy == 'true'))
|
|
run: |
|
|
git clone https://lvgl-bot:${{ secrets.LVGL_BOT_TOKEN }}@github.com/lvgl/open-docs.git /tmp/open-docs-latest
|
|
rm -rf /tmp/open-docs-latest/latest
|
|
rm -rf /tmp/open-docs-latest/${{ steps.version.outputs.VERSION_NAME }}
|
|
mkdir -p /tmp/open-docs-latest/latest
|
|
mkdir -p /tmp/open-docs-latest/${{ steps.version.outputs.VERSION_NAME }}
|
|
cp -r docs/. /tmp/open-docs-latest/latest/
|
|
cp -r docs/. /tmp/open-docs-latest/${{ steps.version.outputs.VERSION_NAME }}/
|
|
cd /tmp/open-docs-latest
|
|
git config user.name lvgl-bot
|
|
git config user.email lvgl-bot@users.noreply.github.com
|
|
git add .
|
|
git diff --cached --quiet || git commit -m "Deploy ${{ steps.version.outputs.VERSION_NAME }} and latest from commit ${{ github.sha }}"
|
|
git push
|
|
|