aboutsummaryrefslogtreecommitdiff
path: root/releng/create_release.xsh
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/create_release.xsh
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/create_release.xsh')
-rw-r--r--releng/create_release.xsh15
1 files changed, 5 insertions, 10 deletions
diff --git a/releng/create_release.xsh b/releng/create_release.xsh
index b51a3ad23..96b13ae4c 100644
--- a/releng/create_release.xsh
+++ b/releng/create_release.xsh
@@ -27,9 +27,6 @@ RELENG_MSG = "Release created with releng/create_release.xsh"
BUILD_CORES = 16
MAX_JOBS = 2
-# TODO
-RELEASE_SYSTEMS = ["x86_64-linux"]
-
def setup_creds(env: RelengEnvironment):
key = keys.get_ephemeral_key(env)
@@ -82,11 +79,9 @@ def realise(paths: list[str]):
nix-store @(args) @(paths)
-def eval_jobs():
- nej_output = $(nix-eval-jobs --workers 4 --gc-roots-dir @(GCROOTS_DIR) --force-recurse --flake '.#release-jobs')
- return [x for x in (json.loads(s) for s in nej_output.strip().split('\n'))
- if x['system'] in RELEASE_SYSTEMS
- ]
+def eval_jobs(build_profile):
+ nej_output = $(nix-eval-jobs --workers 4 --gc-roots-dir @(GCROOTS_DIR) --force-recurse --flake f'.#release-jobs.{build_profile}')
+ return [json.loads(s) for s in nej_output.strip().split('\n')]
def upload_drv_paths_and_outputs(env: RelengEnvironment, paths: list[str]):
@@ -295,14 +290,14 @@ def upload_manual(env: RelengEnvironment):
aws s3 sync @(MANUAL)/ @(env.docs_bucket)/manual/lix/stable/
-def build_artifacts(no_check_git=False):
+def build_artifacts(build_profile, no_check_git=False):
rm -rf release/
if not no_check_git:
verify_are_on_tag()
git_preconditions()
print('[+] Evaluating')
- eval_result = eval_jobs()
+ eval_result = eval_jobs(build_profile)
drv_paths = [x['drvPath'] for x in eval_result]
print('[+] Building')