lint_c.yml 971 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: 'Lint C/C++ with clang-format'
  2. on: push
  3. env:
  4. TARGETS: f6
  5. jobs:
  6. lint_c_cpp:
  7. runs-on: [self-hosted]
  8. steps:
  9. - name: 'Cleanup workspace'
  10. uses: AutoModality/action-clean@v1
  11. - name: 'Checkout code'
  12. uses: actions/checkout@v2
  13. with:
  14. fetch-depth: 0
  15. - name: 'Checkout submodules: update'
  16. run: git submodule update --init --recursive
  17. - name: 'Checkout submodules: sync'
  18. run: git submodule sync
  19. - name: 'Docker cache'
  20. uses: satackey/action-docker-layer-caching@v0.0.11
  21. continue-on-error: true
  22. with:
  23. key: docker-cache-${{ hashFiles('docker/**') }}-{hash}
  24. restore-keys: docker-cache-${{ hashFiles('docker/**') }}-
  25. - name: 'Build docker image'
  26. uses: ./.github/actions/docker
  27. - name: 'Check syntax'
  28. uses: ./.github/actions/docker
  29. continue-on-error: false
  30. with:
  31. run: /syntax_check.sh