name: Check doc generation
on: [push, pull_request]
jobs:
  docs:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v4
    - 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@v4
    - name: Check
      run: |
        ./tools/check_all_header_docs.sh
