Skip to content

Commit ac2725b

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 ac2725b

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

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