Skip to content

Commit

Permalink
Merge pull request #25 from SNURhythm/chore/actions-checkout-keep-files
Browse files Browse the repository at this point in the history
Implement custom caching
  • Loading branch information
VioletXF authored Jul 27, 2023
2 parents 2161412 + 2024553 commit 4b3afdf
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
with:
fetch-depth: 1
lfs: true
- uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-
- name: Restore Library cache # Restore the Unity Library cache from ~/actions-runner/_cache/Library.
run: |
if [ -d ~/actions-runner/_cache/Library ]; then
rsync -a --delete ~/actions-runner/_cache/Library-${{ matrix.targetPlatform }}/ Library/
fi
- uses: VioletXF/unity-builder@main
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
Expand All @@ -32,6 +32,10 @@ jobs:
with:
targetPlatform: ${{ matrix.targetPlatform }}
cacheUnityInstallationOnMac: true
- name: Cache Library # Cache the Unity Library folder to ~/actions-runner/_cache/Library.
run: |
mkdir -p ~/actions-runner/_cache
rsync -a --delete Library/ ~/actions-runner/_cache/Library-${{ matrix.targetPlatform }}/
- name: Generate IPA
if: matrix.targetPlatform == 'iOS'
run: |
Expand Down

0 comments on commit 4b3afdf

Please sign in to comment.