Skip to content

Commit

Permalink
add LFS Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyroonis committed Mar 24, 2024
1 parent 93d4387 commit f96ac83
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,31 @@ jobs:
# - targetPlatform: Android
# targetDevice: Quest
steps:
# Checkout
# Checkout without LFS
- name: Checkout repository
uses: actions/checkout@v3
with:
lfs: true
#lfs: true
fetch-depth: 0
clean: true

# Git LFS
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id

- name: Restore LFS cache
uses: actions/cache@v3
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}

- name: Git LFS Pull
run: |
git lfs pull
git add .
git reset --hard
# Cache
- uses: actions/cache@v3
with:
Expand Down

0 comments on commit f96ac83

Please sign in to comment.