Skip to content

Merge pull request #153 from wysiwyng/coverage #52

Merge pull request #153 from wysiwyng/coverage

Merge pull request #153 from wysiwyng/coverage #52

Workflow file for this run

name: Doxygen - GitHub Pages
on:
push:
branches:
- master
env:
BUILD_TYPE: Release
permissions:
contents: read
pages: write
id-token: write
jobs:
doxygen:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Requirements
run: |
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-program-options-dev doxygen graphviz
- name: LLVM
working-directory: ${{runner.workspace}}
shell: bash
run: |
LLVM_NAME="clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04"
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/$LLVM_NAME.tar.xz
tar xf $LLVM_NAME.tar.xz
mv $LLVM_NAME llvm-lib
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
export LLVM_DIR=${{runner.workspace}}/llvm-lib
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../install -DETISS_BUILD_MANUAL_DOC=ON
- name: Generate docs
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE --target doc
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{runner.workspace}}/build/doc/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4