[sysadmin/ci-utilities] /: Add support for running cmake --build all_installed_library_check.

Ben Cooksley <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c4f8559ae60e57815e48e1fdfc87ca837871ffc9 by Ben Cooksley.
Committed on 23/07/2026 at 09:34.
Pushed by bcooksley into branch 'master'.

Add support for running cmake --build all_installed_library_check.

Ref T18758

M  +2    -0    config-template.yml
M  +1    -0    config/global.yml
M  +10   -0    run-ci-build.py

https://invent.kde.org/sysadmin/ci-utilities/-/commit/c4f8559ae60e57815e48e1fdfc87ca837871ffc9

diff --git a/config-template.yml b/config-template.yml
index a4ac962..14ef34f 100644
--- a/config-template.yml
+++ b/config-template.yml
@@ -27,6 +27,8 @@ Options:
   allow-failing-tests-on: []
   # Run QML Linting, requires necessary setup within the CMake build system for the project so disabled by default
   run-qmllint: False
+  # Run installed library checks, also requires setup in CMake so disabled by default too
+  run-installed-library-check: False
   run-cppcheck: True
   cppcheck-arguments: '--enable=warning,style,performance'
   cppcheck-ignore-files:
diff --git a/config/global.yml b/config/global.yml
index 6243bb1..2d287d5 100644
--- a/config/global.yml
+++ b/config/global.yml
@@ -27,6 +27,7 @@ Options:
   require-passing-tests-on: []
   allow-failing-tests-on: []
   run-qmllint: False
+  run-installed-library-check: False
   run-cppcheck: True
   cppcheck-arguments: '--enable=warning,style,performance'
   cppcheck-ignore-files: []
diff --git a/run-ci-build.py b/run-ci-build.py
index b865d70..8666bbb 100755
--- a/run-ci-build.py
+++ b/run-ci-build.py
@@ -452,6 +452,16 @@ os.remove( archiveFile.name )
 if arguments.only_build:
     sys.exit(0)
 
+####
+# Run installed library checks if requested
+####
+
+if configuration['Options']['run-installed-library-check']:
+    print("## RUNNING INSTALLED LIBRARY CHECKS")
+
+    commandToRun = f'cmake --build "{buildPath}" -t all_installed_library_check'
+    subprocess.check_call( commandToRun, stdout=sys.stdout, stderr=sys.stderr, shell=True, env=buildEnvironment )
+
 ####
 # Retrieve runtime dependencies if they are needed, and rebuild our environment
 ####
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.