diff options
Diffstat (limited to 'lib/lvgl/.github/workflows/compile_docs.yml')
| m--------- | lib/lvgl | 0 | ||||
| -rw-r--r-- | lib/lvgl/.github/workflows/compile_docs.yml | 93 |
2 files changed, 93 insertions, 0 deletions
diff --git a/lib/lvgl b/lib/lvgl deleted file mode 160000 -Subproject 0732400e7b564dd0e7dc4a924619d8e19c5b23a diff --git a/lib/lvgl/.github/workflows/compile_docs.yml b/lib/lvgl/.github/workflows/compile_docs.yml new file mode 100644 index 00000000..8e721884 --- /dev/null +++ b/lib/lvgl/.github/workflows/compile_docs.yml @@ -0,0 +1,93 @@ +name: Build docs +on: + push: + branches: + - master + - 'release/*' +env: + EM_VERSION: 2.0.4 + EM_CACHE_FOLDER: 'emsdk-cache' +jobs: + build-and-deploy: + if: github.repository == 'lvgl/lvgl' + runs-on: ubuntu-latest + concurrency: docs-build-and-deploy + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false + fetch-depth: 0 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Cache Python packages + uses: actions/cache@v2 + with: + # Cache the Python package environment, excluding pip and setuptools installed by setup-python + path: | + ~/.cache/pip + ${{ env.pythonLocation }}/bin/* + ${{ env.pythonLocation }}/include + ${{ env.pythonLocation }}/lib/python*/site-packages/* + !${{ env.pythonLocation }}/bin/pip* + !${{ env.pythonLocation }}/lib/python*/site-packages/pip* + !${{ env.pythonLocation }}/lib/python*/site-packages/setuptools* + key: ${{ env.pythonLocation }}-${{ hashFiles('docs/requirements.txt') }} + - name: Install Doxygen and Latex dependencies + run: | + sudo apt-get update + sudo apt-get install doxygen texlive-xetex texlive-binaries texlive-lang-english latexmk fonts-freefont-otf + - name: Install requirements + run: | + pip install -r docs/requirements.txt + - name: Setup Emscripten cache + id: cache-system-libraries + uses: actions/cache@v2 + with: + path: ${{env.EM_CACHE_FOLDER}} + key: ${{env.EM_VERSION}}-${{ runner.os }} + - uses: mymindstorm/setup-emsdk@v9 + 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: scripts/build_html_examples.sh + - name: Build docs + run: docs/build.py + - name: Remove .doctrees + run: rm -rf out_html/.doctrees + - name: Retrieve version + run: | + echo "::set-output name=VERSION_NAME::$(scripts/find_version.sh)" + id: version + - name: Deploy to subfolder + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACCESS_TOKEN: ${{ secrets.LVGL_BOT_TOKEN }} + REPOSITORY_NAME: lvgl/docs + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: out_html # The folder the action should deploy. + TARGET_FOLDER: ${{ steps.version.outputs.VERSION_NAME }} + GIT_CONFIG_NAME: lvgl-bot + GIT_CONFIG_EMAIL: lvgl-bot@users.noreply.github.com + PRESERVE: true + SINGLE_COMMIT: true + - name: Deploy to master + if: github.ref == 'refs/heads/master' + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ACCESS_TOKEN: ${{ secrets.LVGL_BOT_TOKEN }} + REPOSITORY_NAME: lvgl/docs + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: out_html # The folder the action should deploy. + TARGET_FOLDER: master + GIT_CONFIG_NAME: lvgl-bot + GIT_CONFIG_EMAIL: lvgl-bot@users.noreply.github.com + PRESERVE: true + SINGLE_COMMIT: true |
