Skip to content

Commit 976bdd5

Browse files
Merge pull request #1439 from AlexNDRmac/ci-cache-action
Add cache for Nuget packages
2 parents cad52a2 + 30e4c90 commit 976bdd5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-and-test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ jobs:
5656
git fetch --prune --unshallow
5757
git submodule -q update --init --recursive
5858
59+
- name: Setup nuget cache
60+
uses: actions/cache@v2
61+
id: nuget-cache
62+
with:
63+
path: ~/.nuget
64+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
65+
restore-keys: ${{ runner.os }}-nuget-
66+
5967
- name: Build
6068
shell: pwsh
6169
run: ./ci-build.ps1 "${{matrix.options.framework}}"

0 commit comments

Comments
 (0)