From c716617bbdad98ee95223b9a4c62973804bf036c Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Fri, 30 Aug 2024 16:33:38 +0200 Subject: [PATCH] Make nigthly CD build and publish only "publishable" project. There is no reason to publish nightly for all project we try to build in the CI. We should publish nigthly for same project that we do for releases. (Minus the filter of what have changed since last release) Fix #743 --- .github/scripts/build_release_nightly.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/scripts/build_release_nightly.py b/.github/scripts/build_release_nightly.py index 5ddf3c90..ac860a30 100755 --- a/.github/scripts/build_release_nightly.py +++ b/.github/scripts/build_release_nightly.py @@ -21,16 +21,15 @@ from build_definition import select_build_targets, BUILD, PUBLISH, SOURCE_PUBLISH -# Filter what to build if we are doing a release. -if MAKE_RELEASE: - TARGETS = select_build_targets(PUBLISH) +def release_filter(project): + return release_versions.get(project) is not None - def release_filter(project): - return release_versions.get(project) is not None +# Filter what to build if we are doing a release. +TARGETS = select_build_targets(PUBLISH) + +if MAKE_RELEASE: TARGETS = tuple(filter(release_filter, TARGETS)) -else: - TARGETS = select_build_targets(BUILD) for target in TARGETS: run_kiwix_build(target, config=COMPILE_CONFIG, make_release=MAKE_RELEASE)