Skip to content

Commit f7d2ec7

Browse files
authored
Update cache key for individual platforms
1 parent a4a8a2a commit f7d2ec7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
uses: actions/[email protected]
148148
id: cache-binaries
149149
with:
150-
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('Intersect*/**/*.cs*') }}
150+
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/**/*.cs*', 'Framework/**/*.cs*') }}
151151
path: |
152152
Intersect*/bin/Release/**/*
153153
@@ -162,7 +162,7 @@ jobs:
162162
id: cache-nuget
163163
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
164164
with:
165-
key: ${{ runner.os }}-nuget-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('Intersect*/*.csproj') }}
165+
key: ${{ runner.os }}-nuget-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/*.csproj', 'Framework/*/*.csproj') }}
166166
path: |
167167
~/.nuget/packages
168168
Intersect*/obj/
@@ -215,7 +215,7 @@ jobs:
215215
uses: actions/[email protected]
216216
id: cache-binaries
217217
with:
218-
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('Intersect*/**/*.cs*') }}
218+
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/**/*.cs*', 'Framework/**/*.cs*') }}
219219
path: |
220220
Intersect*/bin/Release/**/*
221221
@@ -230,7 +230,7 @@ jobs:
230230
id: cache-nuget
231231
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
232232
with:
233-
key: ${{ runner.os }}-nuget-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('Intersect*/*.csproj') }}
233+
key: ${{ runner.os }}-nuget-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/*.csproj', 'Framework/*/*.csproj') }}
234234
path: |
235235
~/.nuget/packages
236236
Intersect*/obj/
@@ -283,7 +283,7 @@ jobs:
283283
uses: actions/[email protected]
284284
id: cache-binaries
285285
with:
286-
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('Intersect*/**/*.cs*') }}
286+
key: ${{ runner.os }}-binaries-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('/*.props', 'Intersect*/**/*.cs*', 'Framework/**/*.cs*') }}
287287
path: |
288288
Intersect*/bin/Release/**/*
289289

0 commit comments

Comments
 (0)