diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3aece2f4d71b1..c8d7df19faacb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,3 +39,16 @@ jobs: steps: - uses: actions/checkout@v4 - uses: chartboost/ruff-action@v1 + + clang-format-lint: + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + # container: + # image: "registry.opensuse.org/home/mia/images/images/mpv-ci:stable-deps" + steps: + - run: | + sudo apt-get update + sudo apt-get install -y clang-format + + - uses: actions/checkout@v4 + - run: git clang-format ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} --diff