From 69ef22b717afb123171da0d288c0f35aac881b45 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 31 Oct 2022 07:14:26 +0900 Subject: [PATCH] ci: codecov: Clone cached Zephyr repository This commit updates the codecov workflow to pre-clone the Zephyr repository from the runner repository cache. Note that the `origin` remote URL is reconfigured to that of the GitHub Zephyr repository because the checkout action attempts to delete everything and re-clone otherwise. Signed-off-by: Stephanos Ioannidis --- .github/workflows/codecov.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index dc1db78dbb350d..2e9bf2dae506a3 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -14,6 +14,8 @@ jobs: container: image: ghcr.io/zephyrproject-rtos/ci:v0.24.5 options: '--entrypoint /bin/bash' + volumes: + - /repo-cache/zephyrproject:/github/cache/zephyrproject strategy: fail-fast: false matrix: @@ -33,6 +35,12 @@ jobs: run: | echo "$HOME/.local/bin" >> $GITHUB_PATH + - name: Clone cached Zephyr repository + continue-on-error: true + run: | + git clone /github/cache/zephyrproject/zephyr . + git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY} + - name: checkout uses: actions/checkout@v3 with: