name: Check doc generation
on:
  push:
    branches:
      - '**'
  pull_request:
jobs:
  docs:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v6
    - name: Setup
      env:
        HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
      run: |
        brew install automake autoconf libtool boost doxygen graphviz
        ./autogen.sh
        ./configure --with-boost-include=$(brew --prefix)/include
    - name: Doxygen version
      run: |
        doxygen --version
    - name: Check
      run: |
        make docs

  header-docs:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
    - name: Check
      run: |
        ./tools/check_all_header_docs.sh
