Skip to content

Commit 6866803

Browse files
committed
ci: Add kernel checkers
Integrate kernel specific checkers - check-uapi-headers, sparse-check, checkpatch, dt-binding-check and dtb-check https://github.com/qualcomm-linux/kernel-checkers Signed-off-by: VISHAL KUMAR <viskuma@qti.qualcomm.com>
1 parent 82f2b0b commit 6866803

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Kernel Checkers
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- qcom-next-staging
7+
8+
jobs:
9+
checker:
10+
strategy:
11+
matrix:
12+
check: [check-uapi-headers, sparse-check, checkpatch, dt-binding-check, dtb-check]
13+
14+
runs-on:
15+
group: GHA-Kernel-SelfHosted-RG
16+
labels: [ self-hosted, kernel-prd-u2404-x64-large-od-ephem ]
17+
steps:
18+
- name: Login to ghcr
19+
uses: docker/login-action@v3
20+
with:
21+
registry: ghcr.io
22+
username: ${{ github.actor }}
23+
password: ${{ secrets.GITHUB_TOKEN }}
24+
25+
- name: Pull docker image from ghcr
26+
run: |
27+
docker pull ghcr.io/qualcomm-linux/kmake-image:latest
28+
docker tag ghcr.io/qualcomm-linux/kmake-image:latest kmake-image
29+
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Clone checker scripts
36+
run: cd .. && git clone https://github.com/qualcomm-linux/kernel-checkers.git
37+
38+
- name: Run ${{ matrix.check }}
39+
run: bash ../kernel-checkers/${{ matrix.check }}.sh --kernel-src ${{ github.workspace }} --base ${{ github.event.pull_request.base.sha }} --head ${{ github.event.pull_request.head.sha }}

0 commit comments

Comments
 (0)