Skip to content

Commit a265ff5

Browse files
committed
Use stable cache key for TiUP to persist across workflow runs
Change TiUP cache key from workflow-file-dependent to stable key. This allows TiUP components and multiple TiDB versions to accumulate in cache across multiple workflow runs, improving performance.
1 parent 606838a commit a265ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
path: |
5151
~/.tiup
52-
key: ${{ runner.os }}-tiup-${{ hashFiles('**/.github/workflows/main.yml') }}
52+
key: ${{ runner.os }}-tiup-components
5353
restore-keys: |
5454
${{ runner.os }}-tiup-
5555
@@ -163,7 +163,7 @@ jobs:
163163
with:
164164
path: |
165165
~/.tiup
166-
key: ${{ runner.os }}-tiup-${{ hashFiles('**/.github/workflows/main.yml') }}
166+
key: ${{ runner.os }}-tiup-components
167167
restore-keys: |
168168
${{ runner.os }}-tiup-
169169

0 commit comments

Comments
 (0)