File tree 3 files changed +44
-18
lines changed
3 files changed +44
-18
lines changed Original file line number Diff line number Diff line change 87
87
ccache -c
88
88
shell : bash
89
89
90
+ - name : Run linters
91
+ if : inputs.build-target == 'linux64_multiprocess'
92
+ run : |
93
+ export BUILD_TARGET="${{ inputs.build-target }}"
94
+ source ./ci/dash/matrix.sh
95
+ ./ci/dash/lint-tidy.sh
96
+ shell : bash
97
+
90
98
- name : Run unit tests
91
99
run : |
92
100
BASE_OUTDIR="/output"
Original file line number Diff line number Diff line change 11
11
12
12
source ./ci/dash/matrix.sh
13
13
14
- unset CC; unset CXX
15
- unset DISPLAY
14
+ unset CC CXX DISPLAY;
16
15
17
16
if [ " $PULL_REQUEST " != " false" ]; then test/lint/commit-script-check.sh $COMMIT_RANGE ; fi
18
17
@@ -51,6 +50,8 @@ make distdir VERSION=$BUILD_TARGET
51
50
cd dashcore-$BUILD_TARGET
52
51
bash -c " ./configure $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG " || ( cat config.log && false)
53
52
53
+ # This step influences compilation and therefore will always be a part of the
54
+ # compile step
54
55
if [ " ${RUN_TIDY} " = " true" ]; then
55
56
MAYBE_BEAR=" bear --config src/.bear-tidy-config"
56
57
MAYBE_TOKEN=" --"
@@ -65,22 +66,10 @@ if [ -n "$USE_VALGRIND" ]; then
65
66
${BASE_ROOT_DIR} /ci/test/wrap-valgrind.sh
66
67
fi
67
68
68
- if [ " ${RUN_TIDY} " = " true" ]; then
69
- set -eo pipefail
70
- cd src
71
- ( run-clang-tidy -quiet " ${MAKEJOBS} " ) | grep -C5 " error"
72
- cd ..
73
- iwyu_tool.py \
74
- " src/compat" \
75
- " src/init" \
76
- " src/rpc/fees.cpp" \
77
- " src/rpc/signmessage.cpp" \
78
- -p . " ${MAKEJOBS} " \
79
- -- -Xiwyu --cxx17ns -Xiwyu --mapping_file=" ${BASE_ROOT_DIR} /contrib/devtools/iwyu/bitcoin.core.imp" \
80
- 2>&1 | tee " /tmp/iwyu_ci.out"
81
- cd src
82
- fix_includes.py --nosafe_headers < /tmp/iwyu_ci.out
83
- git --no-pager diff
69
+ # GitHub Actions can segment a job into steps, linting is a separate step
70
+ # so Actions runners will perform this step separately.
71
+ if [ " ${RUN_TIDY} " = " true" ] && [ " ${GITHUB_ACTIONS} " != " true" ]; then
72
+ ${BASE_ROOT_DIR} /ci/dash/lint-tidy.sh
84
73
fi
85
74
86
75
if [ " $RUN_SECURITY_TESTS " = " true" ]; then
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright (c) 2025 The Dash Core developers
3
+ # Distributed under the MIT software license, see the accompanying
4
+ # file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
+
6
+ export LC_ALL=C.UTF-8
7
+
8
+ set -eo pipefail
9
+
10
+ # Warning: This script does not generate the compilation database these linters rely
11
+ # only on nor do they set the requisite build parameters. Make sure you do
12
+ # that *before* running this script.
13
+
14
+ cd " ${BASE_ROOT_DIR} /build-ci/dashcore-${BUILD_TARGET} /src"
15
+ ( run-clang-tidy -quiet " ${MAKEJOBS} " ) | grep -C5 " error"
16
+
17
+ cd " ${BASE_ROOT_DIR} /build-ci/dashcore-${BUILD_TARGET} "
18
+ iwyu_tool.py \
19
+ " src/compat" \
20
+ " src/init" \
21
+ " src/rpc/fees.cpp" \
22
+ " src/rpc/signmessage.cpp" \
23
+ -p . " ${MAKEJOBS} " \
24
+ -- -Xiwyu --cxx17ns -Xiwyu --mapping_file=" ${BASE_ROOT_DIR} /contrib/devtools/iwyu/bitcoin.core.imp" \
25
+ 2>&1 | tee " /tmp/iwyu_ci.out"
26
+
27
+ cd " ${BASE_ROOT_DIR} /build-ci/dashcore-${BUILD_TARGET} /src"
28
+ fix_includes.py --nosafe_headers < /tmp/iwyu_ci.out
29
+ git --no-pager diff
You can’t perform that action at this time.
0 commit comments