-
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
53 additions
and
62 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,18 +1096,28 @@ 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: | | ||
/root/.cache/clang-tidy | ||
/root/.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 run-cmake-release-with-python | ||
make -j2 -C build GenerateParser | ||
make -j2 -C build GenerateParserListeners | ||
make -j2 -C build GenerateCacheSerializers | ||
|
@@ -1117,4 +1127,5 @@ jobs: | |
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 Surlog_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