Skip to content

Merge pull request #36 from rodneylab/ci__update_ci_config #14

Merge pull request #36 from rodneylab/ci__update_ci_config

Merge pull request #36 from rodneylab/ci__update_ci_config #14

Workflow file for this run

name: Documentation
on:
push:
tags:
- "*"
branches: [main, master]
permissions:
contents: read
jobs:
build:
name: Build and publish documentation
permissions:
contents: write
pages: write
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0
with:
egress-policy: audit
disable-telemetry: true
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install Linux Dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev freeglut3-dev libxinerama-dev libxi-dev
- name: Setup Cpp
uses: aminya/setup-cpp@290824452986e378826155f3379d31bce8753d76 # v0.37.0
with:
clangtidy: true
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
- name: Install Docs
run: |
sudo apt-get install doxygen
pip install -r requirements.txt --require-hashes
- name: configure
run: |
cmake -H. -Bbuild -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug"
- name: building
run: |
cmake --build build --config Debug --target doc_doxygen -j4
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@526a34f794dfdf7edd6a4ac94321b1e7945910c0 # v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
build_dir: ./build/docs/doc_doxygen/html