Skip to content

Merge pull request #45 from rodneylab/ci__update_ci_config #17

Merge pull request #45 from rodneylab/ci__update_ci_config

Merge pull request #45 from rodneylab/ci__update_ci_config #17

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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
disable-telemetry: true
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@d485b24c1283deafc12b4b8ae90ff09c0d1eb972 # v0.44.0
with:
clangtidy: true
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.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