From 344930708b58b0ed4cbf6d46da9183a4a91ec07c Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 1 Jul 2022 23:56:35 -0400 Subject: [PATCH] Stop updating all submodules during Xcode builds. (#20238) In CI we were first fetching only the submodules we need for Darwin during the submodules step, then the Xcode build would fetch _all_ submodules. This took a very long time. Change the Xcode script to use the "fetch just the submodules we need" machinery. --- src/darwin/Framework/chip_xcode_build_connector.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/darwin/Framework/chip_xcode_build_connector.sh b/src/darwin/Framework/chip_xcode_build_connector.sh index eb88853c847b54..c950a2e14fbba7 100755 --- a/src/darwin/Framework/chip_xcode_build_connector.sh +++ b/src/darwin/Framework/chip_xcode_build_connector.sh @@ -143,7 +143,7 @@ find_in_ancestors() { fi # there are environments where these bits are unwanted, unnecessary, or impossible - [[ -n $CHIP_NO_SUBMODULES ]] || git submodule update --init + [[ -n $CHIP_NO_SUBMODULES ]] || scripts/checkout_submodules.py --shallow --platform darwin if [[ -z $CHIP_NO_ACTIVATE ]]; then # first run bootstrap/activate in an external env to build everything env -i PW_ENVSETUP_NO_BANNER=1 PW_ENVSETUP_QUIET=1 bash -c '. scripts/activate.sh'