Skip to content

Commit bb2b4bb

Browse files
committed
Fix: Kernel checker workflow as an action
Add reusable kernel checker workflows as action Signed-off-by: Vishal Kumar <viskuma@qti.qualcomm.com>
1 parent 48edd6b commit bb2b4bb

1 file changed

Lines changed: 7 additions & 28 deletions

File tree

.github/workflows/kernel_checkers.yml

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,17 @@ name: Kernel Checkers
22
on:
33
pull_request:
44
branches:
5-
- main
65
- qcom-next-staging
76

87
jobs:
98
checker:
9+
uses: qualcomm-linux/kernel-checkers/.github/workflows/checker.yml@main
10+
with:
11+
check_name: ${{ matrix.check }}
12+
kernel_src: ${{ github.workspace }}
13+
base_sha: ${{ github.event.pull_request.base.sha }}
14+
head_sha: ${{ github.event.pull_request.head.sha }}
15+
1016
strategy:
1117
matrix:
1218
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)