Skip to content

Commit 2bb9c8c

Browse files
committed
make corrections to cache key and cached paths
1 parent 31f5e3d commit 2bb9c8c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,16 @@ jobs:
4747
with:
4848
path: |
4949
Intersect*/bin/Release/**/Intersect*
50-
key: ${{ runner.os }}-nuget-${{ hashFiles('Intersect.*/*.csproj') }}
50+
key: ${{ runner.os }}-nuget-${{ hashFiles('Intersect.*/**/*.cs') }}
5151

5252
- name: Cache NuGet dependencies
5353
uses: actions/cache@v3.2.6
5454
id: cache
5555
if: steps.cache-binaries.outputs.cache-hit != 'true'
5656
with:
57-
path: "~/.nuget/packages"
57+
path: |
58+
~/.nuget/packages
59+
Intersect*/obj/project.assets.json
5860
key: ${{ runner.os }}-nuget-${{ hashFiles('Intersect.*/*.csproj') }}
5961

6062
- name: Restore NuGet Packages

0 commit comments

Comments
 (0)