Skip to content

Commit

Permalink
feat(ci): Add a manual CI job that cleans bazel caches (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic authored Sep 6, 2024
1 parent a1f42a7 commit 38b7bb9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/clean-bazel-caches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Clean Bazel Cache
on:
workflow_dispatch:
inputs:
clean_options:
description: "Additional bazel clean options (e.g. --expunge)"
type: string
default: ""

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
clean-bazel-cache:
runs-on: [self-hosted, dre-runner-custom]
strategy:
matrix:
runner: [1, 2, 3, 4] # We currently have 4 runners, adjust this number if more runners are added
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1

- name: "☁️ Setup bazelisk"
uses: bazelbuild/setup-bazelisk@v2

- name: Clean Bazel Cache
run: |
bazel clean ${{ inputs.clean_options }}

0 comments on commit 38b7bb9

Please sign in to comment.