Skip to content

Commit c8fd21d

Browse files
committed
actions: twister: remove existing ccache directory
if .ccache exists, remove it and replace it with new .ccache directory. Signed-off-by: Anas Nashif <[email protected]>
1 parent 8d5a066 commit c8fd21d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/clang.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585

8686
- name: ccache stats initial
8787
run: |
88-
test -d github/home/.ccache && mv github/home/.ccache /github/home/.ccache
88+
test -d github/home/.ccache && rm -rf /github/home/.ccache && mv github/home/.ccache /github/home/.ccache
8989
ccache -M 10G -s
9090
9191
- name: Run Tests with Twister

.github/workflows/twister.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190

191191
- name: ccache stats initial
192192
run: |
193-
test -d github/home/.ccache && mv github/home/.ccache /github/home/.ccache
193+
test -d github/home/.ccache && rm -rf /github/home/.ccache && mv github/home/.ccache /github/home/.ccache
194194
ccache -M 10G -s
195195
196196
- if: github.event_name == 'push'

0 commit comments

Comments
 (0)