Skip to content

Commit

Permalink
Debug NuGet package caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmell committed Jan 14, 2025
1 parent a0d18f4 commit 38e2c04
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,27 @@ jobs:
# Note the appending of 0 to the key: You can modify this value to
# invalidate the cache.
- uses: actions/cache@v4
id: nuget-packages
env:
cache-name: nuget-package-cache
with:
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-0
${{ runner.os }}-${{ env.cache-name }}
- name: List NuGet Packages
if: ${{ steps.nuget-packages.outputs.cache-hit == 'true' }}
continue-on-error: true
run: |
echo "Cached NuGet packages:"
echo "Using cached NuGet packages:"
ls -lh ~/.nuget/packages
- name: List NuGet Packages
if: ${{ steps.nuget-packages.outputs.cache-hit != 'true' }}
continue-on-error: true
run: echo "Not using cached NuGet packages."

- name: Restore NuGet packages
run: nuget restore AutoTx.sln

Expand Down

0 comments on commit 38e2c04

Please sign in to comment.