From 135f5376c1e64b2f7ddef23f64f202d27f28674a Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 6 Jun 2023 15:36:27 +0000 Subject: [PATCH] ci: workflows: create cache directory for ccache Create cache directory before moving ccache. Signed-off-by: Anas Nashif --- .github/workflows/clang.yaml | 1 + .github/workflows/codecov.yaml | 1 + .github/workflows/twister.yaml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/clang.yaml b/.github/workflows/clang.yaml index 38ef938591cd75..9108d31b45b8ed 100644 --- a/.github/workflows/clang.yaml +++ b/.github/workflows/clang.yaml @@ -94,6 +94,7 @@ jobs: - name: ccache stats initial run: | + mkdir -p /github/home/.cache test -d github/home/.cache/ccache && rm -rf /github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache ccache -M 10G -s diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index e7fa99a9ca2287..0bf6f3ccfd2da1 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -78,6 +78,7 @@ jobs: - name: ccache stats initial run: | + mkdir -p /github/home/.cache test -d github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache ccache -M 10G -s diff --git a/.github/workflows/twister.yaml b/.github/workflows/twister.yaml index 818ec3aa39c666..4b414a7c9b48d9 100644 --- a/.github/workflows/twister.yaml +++ b/.github/workflows/twister.yaml @@ -208,6 +208,7 @@ jobs: - name: ccache stats initial run: | + mkdir -p /github/home/.cache test -d github/home/.cache/ccache && rm -rf /github/home/.cache/ccache && mv github/home/.cache/ccache /github/home/.cache/ccache ccache -M 10G -s