-
Notifications
You must be signed in to change notification settings - Fork 61
35 lines (33 loc) · 1.12 KB
/
verify_kconfig.yml
File metadata and controls
35 lines (33 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Verify Kconfig
on:
push:
pull_request:
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
# Ensure that only one commit will be running tests at a time on each push
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
verify-kconfig:
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Check for leading spaces in Kconfig
working-directory: .
run: |
if grep -qP '^ +' Kconfig; then
echo "Error: Kconfig contains leading spaces instead of tabs"
exit 1
fi
- name: Run kconfig_verify.py
run: python3 -m pip install kconfiglib && python kconfig_verify.py ../Kconfig
working-directory: scripts