only c++17 and plus #295
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: 'Docs' | |
env: | |
CMAKE_VERSION: '3.16.x' | |
CMAKE_BUILD_TYPE: 'Release' | |
CMAKE_BUILD_PREFIX: './build' | |
on: | |
push: | |
pull_request: | |
jobs: | |
docs: | |
runs-on: macos-latest | |
name: 'π Docs' | |
steps: | |
- name: 'π§° Checkout' | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: 'π¨ Install required packages' | |
run: brew install doxygen | |
&& brew install mscgen | |
&& brew install --cask dia | |
&& brew install graphviz | |
&& brew install --cask basictex | |
&& pip3 install sphinx | |
&& pip3 install sphinx-rtd-theme | |
&& pip3 install sphinx-sitemap | |
&& pip3 install sphinxcontrib-moderncmakedomain | |
&& pip3 install breathe | |
- name: 'π¨ Setup CMake' | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '${{env.CMAKE_VERSION}}' | |
github-api-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 'π§ Configure' | |
run: cmake -S . -B ${{ env.CMAKE_BUILD_PREFIX }} -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -D BUILD_ONLY_DOCS=ON | |
- name: 'βοΈ Build' | |
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel 2 --target docs | |
- name: 'π₯ Install' | |
run: cmake --install ${{ env.CMAKE_BUILD_PREFIX }} --prefix ${{ github.workspace }}/bin --strip | |
&& touch ${{ github.workspace }}/bin/docs/html/.nojekyll | |
- name: 'π Deploy' | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: ${{ github.workspace }}/bin/docs/html # The folder the action should deploy. | |
SINGLE_COMMIT: true |