mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
chore(docs) add latexmk to dependencies and cache examples
This commit is contained in:
parent
677c19a895
commit
2746e8ea2a
6
.github/workflows/compile_docs.yml
vendored
6
.github/workflows/compile_docs.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
||||
!${{ env.pythonLocation }}/lib/python*/site-packages/setuptools*
|
||||
key: ${{ env.pythonLocation }}
|
||||
- name: Install Doxygen and Latex dependencies
|
||||
run: sudo apt-get install doxygen texlive-xetex texlive-binaries texlive-lang-english
|
||||
run: sudo apt-get install doxygen texlive-xetex texlive-binaries texlive-lang-english latexmk
|
||||
- name: Install requirements
|
||||
run: |
|
||||
pip install --upgrade --upgrade-strategy eager sphinx recommonmark commonmark breathe sphinx-rtd-theme sphinx-markdown-tables sphinx-sitemap
|
||||
@ -48,7 +48,9 @@ jobs:
|
||||
with:
|
||||
version: ${{env.EM_VERSION}}
|
||||
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
|
||||
- name: Build examples
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
- name: Build examples (with cache)
|
||||
run: scripts/build_html_examples.sh
|
||||
- name: Build docs
|
||||
run: docs/build.py
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||
CURRENT_REF="$(git rev-parse HEAD)"
|
||||
rm -rf emscripten_builder
|
||||
git clone https://github.com/lvgl/lv_sim_emscripten.git emscripten_builder
|
||||
@ -12,8 +13,8 @@ cd ..
|
||||
git submodule update --init -- lv_drivers
|
||||
mkdir cmbuild
|
||||
cd cmbuild
|
||||
emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_example_noop
|
||||
make -j$(nproc)
|
||||
emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_example_noop -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||
emmake make -j$(nproc)
|
||||
rm -rf CMakeFiles
|
||||
cd ../..
|
||||
cp -a emscripten_builder/cmbuild docs/_static/built_lv_examples
|
||||
|
Loading…
x
Reference in New Issue
Block a user