From df4b2520c855a2cd89f75bfea1564c36af9e2483 Mon Sep 17 00:00:00 2001 From: weishu Date: Sun, 22 Oct 2023 10:21:56 +0800 Subject: [PATCH] ci: check bazel cache 3 --- .github/workflows/gki-kernel.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gki-kernel.yml b/.github/workflows/gki-kernel.yml index bb3684cc0e46..db67aa3a2fac 100644 --- a/.github/workflows/gki-kernel.yml +++ b/.github/workflows/gki-kernel.yml @@ -182,7 +182,11 @@ jobs: - name: Check bazel cache if: inputs.use_cache == true run: - du -sh /home/runner/.cache/bazel + if [ -e /home/runner/.cache/bazel ]; then + du -sh /home/runner/.cache/bazel + find /home/runner/.cache/bazel -type f -size +10M -exec rm -f {} \; + du -sh /home/runner/.cache/bazel + fi - name: Prepare artifacts id: prepareArtifacts