Skip to content

Commit 930ad4e

Browse files
committed
use alternative checkout
1 parent 4769c9b commit 930ad4e

1 file changed

Lines changed: 2 additions & 32 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,8 @@ jobs:
2626
with:
2727
python-version: "3.x"
2828

29-
# Don't use lfs directly, but cache the lfs results.
30-
# See <https://github.com/actions/checkout/issues/165#issuecomment-657673315>.
3129
- name: Checkout code
32-
uses: actions/checkout@v2
33-
# with:
34-
# lfs: true
35-
- name: Create LFS file list
36-
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
37-
- name: Restore LFS cache
38-
uses: actions/cache@v2
39-
id: lfs-cache
40-
with:
41-
path: .git/lfs
42-
# key should be the same for all operating systems
43-
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v1
44-
- name: Git LFS Pull
45-
run: git lfs pull
30+
uses: nschloe/action-cached-lfs-checkout@v1
4631

4732
- name: Install CGAL 5
4833
run: |
@@ -67,23 +52,8 @@ jobs:
6752
with:
6853
python-version: "3.x"
6954

70-
# Don't use lfs directly, but cache the lfs results.
71-
# See <https://github.com/actions/checkout/issues/165#issuecomment-657673315>.
7255
- name: Checkout code
73-
uses: actions/checkout@v2
74-
# with:
75-
# lfs: true
76-
- name: Create LFS file list
77-
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
78-
- name: Restore LFS cache
79-
uses: actions/cache@v2
80-
id: lfs-cache
81-
with:
82-
path: .git/lfs
83-
# key should be the same for all operating systems
84-
key: lfs-${{ hashFiles('.lfs-assets-id') }}-v1
85-
- name: Git LFS Pull
86-
run: git lfs pull
56+
uses: nschloe/action-cached-lfs-checkout@v1
8757

8858
- name: Install system dependencies
8959
run: |

0 commit comments

Comments
 (0)