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*
|
!${{ env.pythonLocation }}/lib/python*/site-packages/setuptools*
|
||||||
key: ${{ env.pythonLocation }}
|
key: ${{ env.pythonLocation }}
|
||||||
- name: Install Doxygen and Latex dependencies
|
- 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
|
- name: Install requirements
|
||||||
run: |
|
run: |
|
||||||
pip install --upgrade --upgrade-strategy eager sphinx recommonmark commonmark breathe sphinx-rtd-theme sphinx-markdown-tables sphinx-sitemap
|
pip install --upgrade --upgrade-strategy eager sphinx recommonmark commonmark breathe sphinx-rtd-theme sphinx-markdown-tables sphinx-sitemap
|
||||||
@ -48,7 +48,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{env.EM_VERSION}}
|
version: ${{env.EM_VERSION}}
|
||||||
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
|
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
|
run: scripts/build_html_examples.sh
|
||||||
- name: Build docs
|
- name: Build docs
|
||||||
run: docs/build.py
|
run: docs/build.py
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||||
CURRENT_REF="$(git rev-parse HEAD)"
|
CURRENT_REF="$(git rev-parse HEAD)"
|
||||||
rm -rf emscripten_builder
|
rm -rf emscripten_builder
|
||||||
git clone https://github.com/lvgl/lv_sim_emscripten.git 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
|
git submodule update --init -- lv_drivers
|
||||||
mkdir cmbuild
|
mkdir cmbuild
|
||||||
cd cmbuild
|
cd cmbuild
|
||||||
emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_example_noop
|
emcmake cmake .. -DLVGL_CHOSEN_DEMO=lv_example_noop -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||||||
make -j$(nproc)
|
emmake make -j$(nproc)
|
||||||
rm -rf CMakeFiles
|
rm -rf CMakeFiles
|
||||||
cd ../..
|
cd ../..
|
||||||
cp -a emscripten_builder/cmbuild docs/_static/built_lv_examples
|
cp -a emscripten_builder/cmbuild docs/_static/built_lv_examples
|
||||||
|
Loading…
x
Reference in New Issue
Block a user