| name: CI Format Check |
| on: [push] |
| |
| permissions: |
| contents: read |
| |
| # Cancel the workflow if a new one is triggered from the same PR, branch, or tag, except on main. |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.ref }} |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} |
| |
| jobs: |
| clang-format-check: |
| runs-on: ubuntu-latest |
| steps: |
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
| - uses: RafikFarhad/clang-format-github-action@4a04d8e72a661766278abf214ed995bf6bdf0b8f # v3.2.0 |
| with: |
| style: file |
| sources: "apps/*.c,apps/**/*.h,apps/**/*.c,apps/**/*.cc,examples/*.c,include/avif/*.h,src/*.c,tests/*.c,tests/**/*.h,tests/**/*.cc" |
| excludes: "apps/shared/iccjpeg.h,apps/shared/iccjpeg.c" |