Skip to content

Commit 81bdf0e

Browse files
committed
ci: make cache depend on branch
1 parent 4d7493e commit 81bdf0e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ jobs:
4848
uses: actions/cache@v4
4949
with:
5050
path: ~/.cache/ccache/
51-
key: ${{ runner.os }}-ccache
51+
key: ${{ runner.os }}-ccache-${{ github.ref_name }}
5252
restore-keys: |
53-
${{ runner.os }}-ccache
54-
${{ runner.os }}-ccache-
53+
${{ runner.os }}-ccache-${{ github.ref_name }}
5554
5655
- name: Build for bananapi-r2
5756
run: |

0 commit comments

Comments
 (0)