Skip to content

Commit 2dbe845

Browse files
committed
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 <[email protected]>
1 parent 4efa225 commit 2dbe845

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/codecov.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
container:
1515
image: zephyrprojectrtos/ci:v0.18.4
1616
options: '--entrypoint /bin/bash'
17+
volumes:
18+
- /repo-cache/zephyrproject:/github/cache/zephyrproject
1719
strategy:
1820
fail-fast: false
1921
matrix:
@@ -26,6 +28,12 @@ jobs:
2628
run: |
2729
echo "$HOME/.local/bin" >> $GITHUB_PATH
2830
31+
- name: Clone cached Zephyr repository
32+
continue-on-error: true
33+
run: |
34+
git clone /github/cache/zephyrproject/zephyr .
35+
git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
36+
2937
- name: checkout
3038
uses: actions/checkout@v3
3139
with:

0 commit comments

Comments
 (0)