1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/.github/workflows/verify_kconfig.yml
2024-10-18 17:50:23 +08:00

30 lines
873 B
YAML

name: Verify Kconfig
on:
push:
pull_request:
jobs:
verify-kconfig:
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.7
- 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