-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Inseon Yu(Merlyn)
committed
Oct 6, 2023
1 parent
5ef10c6
commit d5628bb
Showing
1 changed file
with
19 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,25 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: DoozyX/[email protected] | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python for cpplint | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install cpplint | ||
run: pip install cpplint | ||
|
||
- name: Run cpplint | ||
run: find . -iname "*.h" -o -iname "*.cc" | grep -v -e "^./tachyon/base/" -e "^./tachyon/device/" | xargs cpplint --filter=-legal/copyright,-whitespace/line_length,-build/namespaces,-runtime/references | ||
|
||
- name: Run clang-format lint | ||
uses: DoozyX/[email protected] | ||
with: | ||
source: '.' | ||
exclude: './lib' | ||
extensions: 'h,cc' | ||
source: "." | ||
exclude: "./lib" | ||
extensions: "h,cc" | ||
clangFormatVersion: 15 | ||
inplace: True |