Skip to content

Commit

Permalink
replace general cache with restore
Browse files Browse the repository at this point in the history
+ don't need an always since we are directly after config
  • Loading branch information
samayala22 committed Mar 12, 2024
1 parent aa7c8e7 commit 9de4b22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
echo "CACHE_KEY=Windows-${{ matrix.compiler }}-${{ matrix.arch }}-${{ matrix.mode }}-${{ steps.dep_hash.outputs.hash }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
# Cache xmake dependencies
- name: Retrieve cached xmake dependencies
uses: actions/cache@v4
- name: Restore cached xmake dependencies
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHE_PATH }}
key: ${{ env.CACHE_KEY }}
Expand All @@ -72,7 +72,6 @@ jobs:
- name: Cache xmake dependencies
uses: actions/cache/save@v4
if: always()
with:
path: ${{ env.CACHE_PATH }}
key: ${{ env.CACHE_KEY }}
Expand Down

0 comments on commit 9de4b22

Please sign in to comment.