aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 22:56:06 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-02 23:06:26 +0100
commitbc3c7c7190c5acaeb03ef82dc41cc716aaff76c6 (patch)
treee732851b92346135bcff5686181db6074df9724b /project/ci
parentworkflows/basic: test more Python versions (diff)
downloadcmake-common-bc3c7c7190c5acaeb03ef82dc41cc716aaff76c6.tar.gz
cmake-common-bc3c7c7190c5acaeb03ef82dc41cc716aaff76c6.zip
add runtime version information
Diffstat (limited to 'project/ci')
-rw-r--r--project/ci/boost.py3
-rw-r--r--project/ci/cmake.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/project/ci/boost.py b/project/ci/boost.py
index 0d89b75..65f4da0 100644
--- a/project/ci/boost.py
+++ b/project/ci/boost.py
@@ -11,6 +11,7 @@ from project.boost.download import Download, download
from project.ci.dirs import Dirs
from project.linkage import Linkage
from project.utils import setup_logging
+import project.version
def _parse_args(argv=None):
@@ -21,6 +22,8 @@ def _parse_args(argv=None):
description=Dirs.get_boost_help(),
formatter_class=argparse.RawDescriptionHelpFormatter)
+ project.version.add_to_arg_parser(parser)
+
parser.add_argument('--link', metavar='LINKAGE',
nargs='*', type=Linkage.parse,
help='how the libraries are linked')
diff --git a/project/ci/cmake.py b/project/ci/cmake.py
index 1f49f78..13929f7 100644
--- a/project/ci/cmake.py
+++ b/project/ci/cmake.py
@@ -10,6 +10,7 @@ import sys
from project.ci.dirs import Dirs
from project.cmake.build import BuildParameters, build
from project.utils import setup_logging
+import project.version
def _parse_args(argv=None):
@@ -20,6 +21,8 @@ def _parse_args(argv=None):
description=Dirs.get_cmake_help(),
formatter_class=argparse.RawDescriptionHelpFormatter)
+ project.version.add_to_arg_parser(parser)
+
# The hint parameter is basically a workaround for when this is run on a
# CI, _but_ testing another CI is desired. This shouldn't be used in a
# real CI workflow.