From 715f5aa7471c87927845c17888551c0d300c731c Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sun, 14 Apr 2024 17:32:33 +0200 Subject: [PATCH] ci: cleanup CircleCI fetch phases --- .circleci/config.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a1ac95fe4..6406907ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -28,7 +28,7 @@ jobs: steps: - checkout # need to init some stuff first or git will complain when sticking in base cache - - run: git submodule init base && git submodule update base && pushd base && git submodule init && git submodule update && popd + - run: git submodule update --init base && git -C base submodule update --depth 1 --init --jobs 3 --recursive # we can't use command output directly for cache check so we write it to git-rev-base - run: pushd base && git_rev_base=$(git describe HEAD) && popd && echo $git_rev_base && echo $git_rev_base >git-rev-base - restore_cache: @@ -80,14 +80,9 @@ jobs: parallelism: 1 steps: - checkout - # need to init some stuff first or git will complain when sticking in base cache - - run: git submodule init base && git submodule update base && pushd base && git submodule init && git submodule update && popd - # we can't use command output directly for cache check so we write it to git-rev-base - - run: pushd base && git_rev_base=$(git describe HEAD) && popd && echo $git_rev_base && echo $git_rev_base >git-rev-base - - run: - name: init-submodules - command: git submodule init && git submodule sync && git submodule update + name: fetch + command: .ci/fetch.sh # docs, coverage, and test timing (can we use two outputs at once?); master branch only - run: