Skip to content

Commit 01c4b28

Browse files
committed
Add cache-prefix to docs
1 parent b0761d7 commit 01c4b28

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,32 @@ Default `""`.
8383
```
8484
</details>
8585

86+
### `cache-prefix`
87+
88+
Specify a prefix used for all caches.
89+
90+
Default `${{ github.job }}-${{ runner.os }}`
91+
92+
<details>
93+
<summary>Examples</summary>
94+
95+
#### Using a job matrix
96+
97+
```yaml
98+
my-job:
99+
strategy:
100+
matrix:
101+
os: [ubuntu-22.04, ubuntu-24.04]
102+
mode: [dbg, opt]
103+
runs-on: ${{ matrix.os }}
104+
steps:
105+
- uses: actions/checkout@v4
106+
- uses: bazel-contrib/[email protected]
107+
with:
108+
cache-prefix: ${{ matrix.job }}-${{ matrix.os }}-${{ matrix.mode }}
109+
```
110+
</details>
111+
86112
### `disk-cache`
87113

88114
Enable [`disk_cache`][2] and store it on GitHub.

0 commit comments

Comments
 (0)