Skip to content

Commit

Permalink
add subplatforms deps to make_deps_archive
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Nov 10, 2023
1 parent c133d67 commit 50d33e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from build_definition import get_platform_name

from kiwixbuild.dependencies.apple_xcframework import AppleXCFramework
from kiwixbuild.versions import (
main_project_versions,
release_versions,
Expand Down Expand Up @@ -280,6 +281,13 @@ def make_deps_archive(target=None, name=None, full=False):
print_message("Create archive {}.", archive_name)
files_to_archive = list(filter_install_dir(INSTALL_DIR))
files_to_archive += HOME.glob("BUILD_*/LOGS")
if PLATFORM_TARGET == "apple_all_static":
for subplatform in AppleXCFramework.subPlatformNames:
base_dir = HOME / "BUILD_{}".format(subplatform)
files_to_archive += filter_install_dir(base_dir / "INSTALL")
if (base_dir / "meson_cross_file.txt").exists():
files_to_archive.append(base_dir / "meson_cross_file.txt")

if PLATFORM_TARGET.endswith("_mixed"):
static_platform = PLATFORM_TARGET.replace("_mixed", "_static")
files_to_archive += filter_install_dir(HOME / ("BUILD_" + static_platform) / "INSTALL")
Expand Down

0 comments on commit 50d33e4

Please sign in to comment.