name: Lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Install Dependencies
      # Unfortunately available Marketplace Actions for this are in a mess, so we do it manually.
      run: |
        sudo apt-get update -y
        sudo apt-get install -y libpopt-dev libb2-dev clang-tidy iwyu

    - name: Configure CMake
      run: cmake .

    - name: clang-tidy
      run: cmake --build . --target clang-tidy

    - name: iwyu
      run: cmake --build . --target iwyu

name: Lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Install Dependencies
      # Unfortunately available Marketplace Actions for this are in a mess, so we do it manually.
      run: |
        sudo apt-get update -y
        sudo apt-get install -y libpopt-dev libb2-dev clang-tidy libclang-dev iwyu

    - name: Configure CMake
      run: cmake .

    - name: clang-tidy
      run: cmake --build . --target clang-tidy

    - name: iwyu
      run: cmake --build . --target iwyu

Add install of libclang-dev to fix iwyu problem finding headers.
Add install of libclang-dev to fix iwyu problem finding headers.

It seems the ubuntu iwyu package has a bug where it's missing a dependency
containing the headers it needs.
