aboutsummaryrefslogtreecommitdiff
path: root/releng/cli.py
diff options
context:
space:
mode:
authorjade <lix@jade.fyi>2024-06-15 02:38:09 +0000
committerGerrit Code Review <gerrit@localhost>2024-06-15 02:38:09 +0000
commite1059bfa34b2f9e780ae2d13021c6bef66f34599 (patch)
tree887869e9cdc90df1eeeec59fb31d93ac36ce39c2 /releng/cli.py
parent068576042b3b58f8180b24a36c07199a1a3fd380 (diff)
parentd5c670ad0175fe2a9279784f2acacae4ba7b3828 (diff)
Merge changes from topic "releng" into main
* changes: releng: add sha256 for the manual tarball releng: fix upload of multiarch images to forgejo releng: fix git checking releng: fix logging inside interactive xonsh releng: support multiple systems version: update to 2.90.0-rc1
Diffstat (limited to 'releng/cli.py')
-rw-r--r--releng/cli.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/releng/cli.py b/releng/cli.py
index 89391e0a7..f78d4b12d 100644
--- a/releng/cli.py
+++ b/releng/cli.py
@@ -2,16 +2,16 @@ from . import create_release
from . import docker
from .environment import RelengEnvironment
from . import environment
-import functools
import argparse
import sys
def do_build(args):
if args.target == 'all':
- create_release.build_artifacts(no_check_git=args.no_check_git)
+ create_release.build_artifacts(args.profile, no_check_git=args.no_check_git)
elif args.target == 'manual':
- eval_result = create_release.eval_jobs()
+ # n.b. args.profile does nothing here, you will just get the x86_64-linux manual no matter what.
+ eval_result = create_release.eval_jobs(args.profile)
create_release.build_manual(eval_result)
else:
raise ValueError('invalid target, unreachable')
@@ -80,6 +80,10 @@ def main():
build.add_argument('--target',
choices=['manual', 'all'],
help='Whether to build everything or just the manual')
+ build.add_argument('--profile',
+ default='all',
+ choices=('all', 'x86_64-linux-only'),
+ help='Which systems to build targets for.')
build.set_defaults(cmd=do_build)
upload = sps.add_parser(