Skip to content

Commit 535ef9a

Browse files
author
Ubuntu
committed
Fix more checks
Signed-off-by: Ubuntu <[email protected]>
1 parent 9c4558a commit 535ef9a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pr_checks.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
run-complexity: true,
7070
run-doxygen: true,
7171
build-flags: -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS='-Wall -Wextra -DNDEBUG',
72+
coverage-skips: "*3rdparty*",
7273
},
7374
{
7475
repository: coreJSON,
@@ -88,7 +89,7 @@ jobs:
8889
run-spelling-check: true,
8990
run-complexity: true,
9091
run-doxygen: true,
91-
build-flags: -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='-Wall -Wextra -Werror -DNDEBUG -DLIBRARY_LOG_LEVEL=LOG_DEBUG',
92+
build-flags: -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG -DLIBRARY_LOG_LEVEL=LOG_DEBUG',
9293
},
9394
{
9495
repository: corePKCS11,
@@ -208,7 +209,7 @@ jobs:
208209
with:
209210
path: repo/${{ matrix.inputs.repository }}
210211
exclude-dirs: complexity, formatting
211-
exclude-urls: https://dummy-url.com/ota.bin, https://s3.region.amazonaws.com/joe-ota
212+
exclude-urls: https://dummy-url.com/ota.bin, https://s3.region.amazonaws.com/joe-ota, https://www.gnu.org/software/complexity/manual/complexity.html, https://www.u-blox.com/en/product/sara-r4-series
212213

213214
- name: "Complexity Check: ${{ matrix.inputs.repository }}"
214215
if: matrix.inputs.run-complexity && ( success() || failure() )
@@ -303,7 +304,12 @@ jobs:
303304
echo -e "::endgroup::"
304305
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
305306
306-
lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
307+
if [[ "${{ matrix.inputs.coverage-skips }}" != "" ]]; then
308+
declare -a EXCLUDE=( ${{ matrix.inputs.coverage-skips }} )
309+
echo ${EXCLUDE[@]} | xargs lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
310+
else
311+
lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
312+
fi
307313
308314
echo -e "::endgroup::"
309315

0 commit comments

Comments
 (0)