From 5343757716f228f394a65d9bbdce9772d46b2abb Mon Sep 17 00:00:00 2001 From: nikhilbhatia08 Date: Fri, 15 Aug 2025 22:26:09 +0530 Subject: [PATCH] [CI] clear macos bazel cache custom action --- .github/workflows/clear_cache.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/clear_cache.yml diff --git a/.github/workflows/clear_cache.yml b/.github/workflows/clear_cache.yml new file mode 100644 index 0000000000..3c0cf06115 --- /dev/null +++ b/.github/workflows/clear_cache.yml @@ -0,0 +1,16 @@ +name: Clear Bazel MacOS Cache +on: + workflow_dispatch: + +jobs: + clear-cache: + runs-on: macos-latest + steps: + - name: Create empty Bazel cache dir + run: rm -rf /Users/runner/.cache/bazel && mkdir -p /Users/runner/.cache/bazel + + - name: Save empty cache over old one + uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 + with: + path: /Users/runner/.cache/bazel + key: bazel_osx