-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base run-clang-tidy.sh on run-clang-tidy-cached.cc
This way, only changed files have to be re-processed.
- Loading branch information
Showing
10 changed files
with
59 additions
and
68 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
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
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 |
---|---|---|
|
@@ -1096,25 +1096,35 @@ jobs: | |
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: Use ccache | ||
uses: hendrikmuhs/[email protected] | ||
- name: Create Cache Timestamp | ||
id: cache_timestamp | ||
uses: nanzm/[email protected] | ||
with: | ||
format: 'YYYY-MM-DD-HH-mm-ss' | ||
|
||
- name: Retrieve cached results | ||
uses: actions/cache@v3 | ||
with: | ||
key: clang-tidy-codegen | ||
path: | | ||
/home/runner/.cache/clang-tidy | ||
/home/runner/.cache/ccache | ||
key: clang-tidy-${{ steps.cache_timestamp.outputs.time }} | ||
restore-keys: clang-tidy- | ||
|
||
- name: Configure shell | ||
run: | | ||
echo 'PATH=/usr/lib/ccache:'"$PATH" >> $GITHUB_ENV | ||
- name: Prepare source | ||
run: | | ||
make run-cmake-release | ||
make -j2 -C build GenerateParser | ||
make -j2 -C build GenerateParserListeners | ||
make -j2 -C build GenerateCacheSerializers | ||
ccache -p | ||
make run-cmake-release-with-python | ||
make -j2 -C build surelog | ||
ln -sf build/compile_commands.json . | ||
- name: Run clang tidy | ||
run: | | ||
export CLANG_TIDY=clang-tidy-18 | ||
"${CLANG_TIDY}" --version | ||
./.github/bin/run-clang-tidy.sh limited | ||
./.github/bin/run-clang-tidy.sh limited \ | ||
|| ( cat Surelog_clang-tidy.out ; exit 1) |
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
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
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
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
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
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
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