-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): Add a manual CI job that cleans bazel caches (#890)
- Loading branch information
1 parent
a1f42a7
commit 38b7bb9
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |