diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3aece2f4d71b1..efbd6df1a6d5c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -39,3 +39,23 @@ 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: alpine:3.20 + # container: + # image: "registry.opensuse.org/home/mia/images/images/mpv-ci:stable-deps" + steps: + - run: | + apk update + apk add git python3 clang17-extra-tools + + - uses: actions/checkout@v4 + with: + fetch-depth: 50 + - name: Check Formatting + run: | + git clang-format ${{ github.event.pull_request.base.sha }} --diff + echo $?