Skip to content

Commit 9dba693

Browse files
committed
Work CI-CD
- Add cache for nuget packages in virtual device jobs. ***NO_CI***
1 parent d90b430 commit 9dba693

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,13 @@ jobs:
840840
841841
- template: azure-pipelines-templates/install-nuget.yml@templates
842842

843+
- task: Cache@2
844+
displayName: Cache NuGet packages
845+
continueOnError: true
846+
inputs:
847+
key: 'nuget | **/targets/netcore/nanoFramework.nanoCLR.Host/packages.lock.json | **/targets/netcore/nanoFramework.nanoCLR.CLI/packages.lock.json'
848+
path: $(UserProfile)/.nuget/packages
849+
843850
- task: DotNetCoreCLI@2
844851
displayName: Restore NuGet packages
845852
inputs:
@@ -1063,6 +1070,13 @@ jobs:
10631070

10641071
- template: azure-pipelines-templates/install-nuget.yml@templates
10651072

1073+
- task: Cache@2
1074+
displayName: Cache NuGet packages
1075+
continueOnError: true
1076+
inputs:
1077+
key: 'nuget | **/targets/netcore/nanoFramework.nanoCLR.Host/packages.lock.json | **/targets/netcore/nanoFramework.nanoCLR.CLI/packages.lock.json'
1078+
path: $(UserProfile)/.nuget/packages
1079+
10661080
- task: DotNetCoreCLI@2
10671081
displayName: Restore NuGet packages
10681082
inputs:

0 commit comments

Comments
 (0)