diff --git a/.gitlab/ci/common.yml b/.gitlab/ci/common.yml index 5574402759..647296eed6 100644 --- a/.gitlab/ci/common.yml +++ b/.gitlab/ci/common.yml @@ -250,41 +250,15 @@ variables: - *show_ccache_statistics - *upload_failed_job_log_artifacts -############################## -# Git Strategy Job Templates # -############################## .brew-macos-settings: variables: - GIT_STRATEGY: none # we do manual git clone to use local mirror + GIT_STRATEGY: fetch IDF_CCACHE_ENABLE: "0" CCACHE_DIR: "/var/tmp/cache/idf_ccache" tags: - macos-tart image: macos-sequoia-idf-v6.1 - cache: [] # pip cache is created under amd64, and submodules are downloaded with brew mirror, so disable cache here - before_script: - # assert LOCAL_GIT_MIRROR is set - - echo -e "section_start:`date +%s`:check_out\r\e[0Kchecking out from local git mirror, then reset to CI_COMMIT_SHA" - - | - if [ -z "${LOCAL_GIT_MIRROR:-}" ]; then - echo "Error: LOCAL_GIT_MIRROR not set, cannot clone from mirror." - exit 1 - fi - - MIRROR_REPO_URL="${LOCAL_GIT_MIRROR}/${CI_PROJECT_PATH}" - - cd "${CI_PROJECT_DIR}" - # since .cache exists in CI_PROJECT_DIR, so can't direct `git clone .` - - git clone -b ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-${CI_COMMIT_REF_NAME}} --depth=1 --recursive --shallow-submodules "${MIRROR_REPO_URL}" tmp - - mv tmp/.git ./ - - rm -rf tmp - - git reset --hard - # set remote url back - - git remote set-url origin "${CI_REPOSITORY_URL}" - - eval "git fetch --depth=1 ${GIT_FETCH_EXTRA_FLAGS} origin ${CI_COMMIT_SHA}" - - git checkout FETCH_HEAD - - git submodule update --init --recursive --depth=1 - - echo -e "section_end:`date +%s`:check_out\r\e[0K" - - *common-before_scripts - - *setup_tools_and_idf_python_venv + cache: [] # cache are built for amd64 linux runners, useless here after_script: [] # ccache now is disabled for macos brew runners timeout: 30m