@@ -30,26 +30,15 @@ variables:
3030 # - set GIT_STRATEGY: "clone" to shiny runners
3131 # - set GIT_STRATEGY: "fetch" to brew runners
3232 GIT_STRATEGY : clone
33- # we will download archive for each submodule instead of clone.
34- # we don't do "recursive" when fetch submodule as they're not used in CI now.
35- GIT_SUBMODULE_STRATEGY : none
36- # since we're using merged-result pipelines, the last commit should work for most cases
3733 GIT_DEPTH : 1
38- # --no-recurse-submodules: we use cache for submodules
34+ GIT_SUBMODULE_STRATEGY : none # here we use cache for submodules, so we don't need to fetch them every time
35+ # since we're using merged-result pipelines, the last commit should work for most cases
3936 # --prune --prune-tags: in case remote branch or tag is force pushed
4037 GIT_FETCH_EXTRA_FLAGS : " --no-recurse-submodules --prune --prune-tags"
4138 # we're using .cache folder for caches
4239 GIT_CLEAN_FLAGS : -ffdx -e .cache/
4340 LATEST_GIT_TAG : v6.0-dev
4441
45- SUBMODULE_FETCH_TOOL : " tools/ci/ci_fetch_submodule.py"
46- # by default we will fetch all submodules
47- # jobs can overwrite this variable to only fetch submodules they required
48- # set to "none" if don't need to fetch submodules
49- SUBMODULES_TO_FETCH : " all"
50- # tell build system do not check submodule update as we download archive instead of clone
51- IDF_SKIP_CHECK_SUBMODULES : 1
52-
5342 IDF_PATH : " $CI_PROJECT_DIR"
5443 V : " 0"
5544 CHECKOUT_REF_SCRIPT : " $CI_PROJECT_DIR/tools/ci/checkout_project_ref.py"
@@ -392,11 +381,9 @@ default:
392381 paths :
393382 - .cache/pip
394383 policy : pull
395- - key : submodule-cache-${LATEST_GIT_TAG}
396- fallback_keys :
397- - submodule-cache
384+ - key : git-submodule-cache-${LATEST_GIT_TAG}
398385 paths :
399- - .cache/submodule_archives
386+ - .git/modules
400387 policy : pull
401388 before_script :
402389 - *common-before_scripts
0 commit comments