ci-validate-boards.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # ci-validate-boards.yml
  3. # Validate boards.h to make sure it's all set up correctly
  4. #
  5. name: CI - Validate boards.h
  6. # We can do the on: section as two items, one for pull requests and one for pushes...
  7. on:
  8. pull_request:
  9. branches:
  10. - bugfix-2.1.x
  11. paths:
  12. - 'Marlin/src/core/boards.h'
  13. push:
  14. branches:
  15. - bugfix-2.1.x
  16. paths:
  17. - 'Marlin/src/core/boards.h'
  18. jobs:
  19. validate_pins_files:
  20. name: Validate boards.h
  21. if: github.repository == 'MarlinFirmware/Marlin'
  22. runs-on: ubuntu-22.04
  23. steps:
  24. - name: Check out the PR
  25. uses: actions/checkout@v4
  26. - name: Cache pip
  27. uses: actions/cache@v4
  28. with:
  29. path: ~/.cache/pip
  30. key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
  31. restore-keys: |
  32. ${{ runner.os }}-pip-
  33. - name: Select Python 3.9
  34. uses: actions/setup-python@v5
  35. with:
  36. python-version: '3.9'
  37. architecture: 'x64'
  38. - name: Validate core/boards.h
  39. run: |
  40. make validate-boards -j