Skip to content

Commit

Permalink
Cache NuGet packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmell committed Jan 14, 2025
1 parent 571cbc0 commit 0ff4d85
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
# this is the last Github runner VM that supports .Net Framework 2019
runs-on: windows-2019

env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

steps:
- name: Checkout code base
uses: actions/[email protected]
Expand All @@ -39,6 +42,16 @@ jobs:
- name: Setup NuGet.exe for use with actions
uses: NuGet/[email protected]

# Cache NuGet packages to speed up build. Hash is based on project files.
# Note the appending of 0 to the key: You can modify this value to
# invalidate the cache.
- uses: actions/cache@v4
with:
path: ${{ github.workspace }}\.nuget\packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-0
- name: Restore NuGet packages
run: nuget restore AutoTx.sln

Expand Down

0 comments on commit 0ff4d85

Please sign in to comment.