Skip to content

Commit 4769c9b

Browse files
committed
gh-actions: share lfs between operating systems
1 parent 5c75aed commit 4769c9b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ jobs:
3939
id: lfs-cache
4040
with:
4141
path: .git/lfs
42-
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
42+
# key should be the same for all operating systems
43+
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v1
4344
- name: Git LFS Pull
4445
run: git lfs pull
4546

@@ -79,7 +80,8 @@ jobs:
7980
id: lfs-cache
8081
with:
8182
path: .git/lfs
82-
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
83+
# key should be the same for all operating systems
84+
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v1
8385
- name: Git LFS Pull
8486
run: git lfs pull
8587

0 commit comments

Comments
 (0)