更新tool #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Cpp | |
on: | |
pull_request: | |
paths: | |
- "engine/**" | |
jobs: | |
foramt: | |
name: Clang Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: DoozyX/clang-format-lint-action@v0.16.1 | |
with: | |
source: './engine' | |
exclude: './engine/assets ./engine/shaders' | |
extensions: 'hpp,cpp,inl' | |
clangFormatVersion: 16 | |
inplace: True | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Clang Robot | |
author_email: robot@example.com | |
message: 'Committing clang-format changes' | |
env: | |
GITHUB_TOKEN: ${{ secrets.TAIXU_GITHUB_TOKEN }} | |
lint: | |
name: Clang Tidy | |
needs: foramt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 |