File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v4
19+ - uses : DoozyX/clang-format-lint-action@v0.15
1920 with :
20- fetch-depth : 0
21- - name : Install clang-format
22- run : sudo apt-get update && sudo apt-get install -y clang-format-18
23- - name : Fetch diff refs
24- env :
25- BASE_SHA : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
26- HEAD_SHA : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
27- run : |
28- if [[ -n "${BASE_SHA}" ]]; then
29- git fetch --no-tags origin "${BASE_SHA}" "${HEAD_SHA}"
30- fi
31- - name : Run clang-format
32- env :
33- BASE_SHA : ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
34- HEAD_SHA : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
35- run : python3 ./scripts/ci/clang_format_check.py "${BASE_SHA}" "${HEAD_SHA}"
21+ source : ' ./app ./include ./src ./test'
3622 build-linux :
3723 strategy :
3824 matrix :
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments