2021-07-27 13:13:30 -05:00
|
|
|
on: pull_request
|
2021-07-12 13:21:46 -05:00
|
|
|
|
2022-03-23 11:47:57 -05:00
|
|
|
name: Check Code Style (checkpatch)
|
2021-07-12 13:21:46 -05:00
|
|
|
|
|
|
|
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
|
2022-03-23 11:47:57 -05:00
|
|
|
- name: Install required packages (apt-get)
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install patchutils
|
2021-07-12 13:21:46 -05:00
|
|
|
- name: Run checkpatch
|
|
|
|
run: |
|
2022-03-23 11:47:57 -05:00
|
|
|
git diff -U20 HEAD~40 \
|
|
|
|
| filterdiff \
|
|
|
|
-x "a/src/jtag/drivers/libjaylink/*" \
|
|
|
|
-x "a/tools/git2cl/*" \
|
|
|
|
-x "a/.github/*" \
|
2023-03-01 17:13:37 -06:00
|
|
|
-x "a/HACKING" \
|
2022-03-23 11:47:57 -05:00
|
|
|
| ./tools/scripts/checkpatch.pl --no-signoff -
|