Skip to content

Commit

Permalink
ci/cd cache git, use v4
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Mattiello <[email protected]>
  • Loading branch information
JoeMatt committed Dec 31, 2024
1 parent dfebbee commit 8acc799
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,17 @@ jobs:
runs-on: 'macos-latest'
timeout-minutes: 300
steps:
- name: Cache Git checkout
uses: actions/cache@v3
with:
path: .
key: git-checkout-${{ github.sha }}
restore-keys: |
git-checkout-
- name: Checkout code
uses: actions/checkout@v3
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
Expand Down Expand Up @@ -191,3 +200,9 @@ jobs:
}
}]
}'
- name: Cleanup
if: always()
run: |
rm -rf .git
rm -rf .build

0 comments on commit 8acc799

Please sign in to comment.