Skip to content

Bump jwlawson/actions-setup-cmake from 1.14 to 2.0 #293

Bump jwlawson/actions-setup-cmake from 1.14 to 2.0

Bump jwlawson/actions-setup-cmake from 1.14 to 2.0 #293

Workflow file for this run

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