aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/checkpatch.yml
blob: 4ed0a0519005baf8c9d051b54d8f026e884d7564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
on: push

name: Check Code Style

jobs:
  check:
    runs-on: ubuntu-latest
    env:
      DL_DIR: ../downloads
      BUILD_DIR: ../build
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2
        with:
            fetch-depth: 50
      - run: sudo apt-get install patchutils
      - name: Run checkpatch
        run: |
            git diff -U20 HEAD~40 | \
                    filterdiff -x "a/src/jtag/drivers/libjaylink/*" -x "a/tools/git2cl/*" | \
                    ./tools/scripts/checkpatch.pl --no-signoff -