forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: split out
multiprocess
linting to a separate step on Actions
- Loading branch information
Showing
3 changed files
with
44 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# Copyright (c) 2025 The Dash Core developers | ||
# Distributed under the MIT software license, see the accompanying | ||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||
|
||
export LC_ALL=C.UTF-8 | ||
|
||
set -eo pipefail | ||
|
||
# Warning: This script does not generate the compilation database these linters rely | ||
# only on nor do they set the requisite build parameters. Make sure you do | ||
# that *before* running this script. | ||
|
||
cd "${BASE_ROOT_DIR}/build-ci/dashcore-${BUILD_TARGET}/src" | ||
( run-clang-tidy -quiet "${MAKEJOBS}" ) | grep -C5 "error" | ||
|
||
cd "${BASE_ROOT_DIR}/build-ci/dashcore-${BUILD_TARGET}" | ||
iwyu_tool.py \ | ||
"src/compat" \ | ||
"src/init" \ | ||
"src/rpc/fees.cpp" \ | ||
"src/rpc/signmessage.cpp" \ | ||
-p . "${MAKEJOBS}" \ | ||
-- -Xiwyu --cxx17ns -Xiwyu --mapping_file="${BASE_ROOT_DIR}/contrib/devtools/iwyu/bitcoin.core.imp" \ | ||
2>&1 | tee "/tmp/iwyu_ci.out" | ||
|
||
cd "${BASE_ROOT_DIR}/build-ci/dashcore-${BUILD_TARGET}/src" | ||
fix_includes.py --nosafe_headers < /tmp/iwyu_ci.out | ||
git --no-pager diff |