From 6c676827e720d3a58553f666b97ad234452235ea Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Mon, 31 Oct 2022 07:07:13 +0900 Subject: [PATCH] ci: clang: Clone cached Zephyr repository This commit updates the clang 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/clang.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/clang.yaml b/.github/workflows/clang.yaml index fbee29599a70ff..e273f9835bd465 100644 --- a/.github/workflows/clang.yaml +++ b/.github/workflows/clang.yaml @@ -38,6 +38,13 @@ jobs: run: | # hotfix, until we have a better way to deal with existing data rm -rf zephyr zephyr-testing + + - 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: