Skip to content

Commit

Permalink
Cache nuget packages if csproj unchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
jas88 committed Mar 18, 2022
1 parent 14b10b4 commit dc9bf63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.x
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Add MSFT code signing key
run: wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- name: Add MSFT package repo
Expand Down

0 comments on commit dc9bf63

Please sign in to comment.