Make X libs install step not conditional for update docs. (#120) #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish_docs: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Install GL/X11 packages for rendering (Linux only) | |
run: | | |
sudo apt-get update && sudo apt-get -y --no-install-recommends install \ | |
libgles2-mesa-dev \ | |
libx11-dev | |
- name: Create Build Environment | |
run: | | |
cmake -E make_directory ${{runner.workspace}}/build | |
sudo apt install graphviz doxygen | |
- name: Build docs | |
working-directory: ${{runner.workspace}}/build | |
shell: bash | |
run: | | |
cmake $GITHUB_WORKSPACE | |
cmake --build . --target doc | |
- name: Deploy to github pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: ${{runner.workspace}}/build/doc/html |