Skip to content

Commit a0eb50b

Browse files
committed
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 <[email protected]>
1 parent 2da9d75 commit a0eb50b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/clang.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030
run: |
3131
# hotfix, until we have a better way to deal with existing data
3232
rm -rf zephyr zephyr-testing
33+
34+
- name: Clone cached Zephyr repository
35+
continue-on-error: true
36+
run: |
37+
git clone /github/cache/zephyrproject/zephyr .
38+
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
39+
3340
- name: Checkout
3441
uses: actions/checkout@v3
3542
with:

0 commit comments

Comments
 (0)