From ce45337c51ed53e6f1b337aa746a5a96c5018f86 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Fri, 2 Dec 2022 17:53:51 -0700 Subject: ci: Speed up MacOS builds Caches update_deps.py dependencies. In particular MoltenVK since it's a huge dependency. --- scripts/update_deps.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts') diff --git a/scripts/update_deps.py b/scripts/update_deps.py index 105ef22f..f892be0a 100755 --- a/scripts/update_deps.py +++ b/scripts/update_deps.py @@ -651,6 +651,12 @@ def main(): action='store_true', help="Delete install directory before building", default=False) + parser.add_argument( + '--skip-existing-install', + dest='skip_existing_install', + action='store_true', + help="Skip build if install directory exists", + default=False) parser.add_argument( '--arch', dest='arch', @@ -694,6 +700,14 @@ def main(): if not repo.on_build_platform: continue + # Skip building the repo if its install directory already exists + # and requested via an option. This is useful for cases where the + # install directory is restored from a cache that is known to be up + # to date. + if args.skip_existing_install and os.path.isdir(repo.install_dir): + print('Skipping build for repo {n} due to existing install directory'.format(n=repo.name)) + continue + # Skip test-only repos if the --tests option was not passed in if repo.IsOptional(args.optional): continue -- cgit v1.2.3