Skip to content

Commit dd3eb7c

Browse files
committed
ci: Add kernel checkers
Integrate kernel specific checkers - check-uapi-headers : Ensures UAPI headers are consistent sparse-check : Runs sparse static analysis checkpatch : Runs checkpatch.pl to validate patch formatting dt-binding-check : Validates devicetree bindings dtb-check : Checks compiled device tree blobs Reference - https://github.com/qualcomm-linux/kernel-checkers Signed-off-by: Vishal Kumar <viskuma@qti.qualcomm.com>
1 parent 3bde70a commit dd3eb7c

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Kernel Checkers
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
5+
branches:
6+
- tech/bsp/pinctrl
7+
8+
permissions:
9+
pull-requests: read
10+
11+
jobs:
12+
prepare:
13+
runs-on:
14+
group: GHA-Kernel-SelfHosted-RG
15+
labels: [ self-hosted, kernel-prd-u2404-x64-large-od-ephem ]
16+
steps:
17+
- name: Checkout PR Code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
steps:
22+
- name: Print all outputs
23+
run: |
24+
echo ${{ github.workspace }}
25+
echo ${{ github.event.pull_request.base.sha }}
26+
echo ${{ github.event.pull_request.head.sha }}
27+
echo ${{ github.event.pull_request.ssh_url }}
28+
echo ${{ github.base_ref }}
29+
30+
outputs:
31+
kernel_src: ${{ github.workspace }}
32+
base_sha: ${{ github.event.pull_request.base.sha }}
33+
head_sha: ${{ github.event.pull_request.head.sha }}
34+
pr_url: ${{ github.event.pull_request.ssh_url }}
35+
36+
checker:
37+
needs: prepare
38+
uses: qualcomm-linux/kernel-checkers/.github/workflows/checker.yml@main
39+
with:
40+
check_name: ${{ matrix.check }}
41+
kernel_src: ${{ needs.prepare.outputs.kernel_src }}/kernel
42+
base_sha: ${{ needs.prepare.outputs.base_sha }}
43+
head_sha: ${{ needs.prepare.outputs.head_sha }}
44+
base_branch: ${{ github.base_ref }}
45+
pr_url: ${{ needs.prepare.outputs.pr_url }}
46+
pr_number: ${{ github.event.pull_request.number }}
47+
48+
strategy:
49+
matrix:
50+
check: [check-uapi-headers, sparse-check, checkpatch,
51+
dt-binding-check, dtb-check]
52+
fail-fast: false

0 commit comments

Comments
 (0)