Skip to content

Commit c8fd0f5

Browse files
authored
infra: cache models in test-and-build GHA (#237)
Signed-off-by: yuluo-yx <[email protected]>
1 parent 48727e7 commit c8fd0f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test-and-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ jobs:
5151
~/go/pkg/mod
5252
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
5353

54+
- name: Cache Models
55+
uses: actions/cache@v4
56+
with:
57+
path: |
58+
models/
59+
~/.cache/huggingface/
60+
key: ${{ runner.os }}-models-v1-${{ hashFiles('tools/make/models.mk') }}
61+
restore-keys: |
62+
${{ runner.os }}-models-v1-
63+
5464
- name: Check go mod tidy
5565
run: make check-go-mod-tidy
5666

0 commit comments

Comments
 (0)