Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Enable caching nuget packages in pipeline.
- Add package.lock to projects.

***NO_CI***
  • Loading branch information
josesimoes committed Aug 25, 2022
1 parent ee4dc16 commit 27cda01
Show file tree
Hide file tree
Showing 5 changed files with 3,171 additions and 3 deletions.
11 changes: 11 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ jobs:
buildPlatform: 'x64'
buildConfiguration: 'Release'
solution: 'nanoFirmwareFlasher.sln'
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
run_update_dependents: $[dependencies.Check_Build_Options.outputs['BuildOptions.RUN_UPDATE_DEPENDENTS']]

steps:
Expand Down Expand Up @@ -214,6 +215,15 @@ jobs:
eq(variables['UPDATE_DEPENDENTS'], 'true')
displayName: Set Could Version

- task: Cache@2
displayName: Cache NuGet packages
inputs:
key: 'nuget | "$(Agent.OS)" | **/packages.lock.json, !bin/**'
restoreKeys: |
nuget | "$(Agent.OS)"
nuget
path: $(NUGET_PACKAGES)

- task: DotNetCoreCLI@2
displayName: Restore NuGet packages
condition: >-
Expand All @@ -223,6 +233,7 @@ jobs:
)
inputs:
command: restore
restoreArguments: '--locked-mode'
verbosityRestore: minimal
projects: nanoFirmwareFlasher.sln
feedsToUse: config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,18 @@
<PackageProjectUrl>https://github.com/nanoframework/nanoFirmwareFlasher</PackageProjectUrl>
<PackageIconUrl></PackageIconUrl>
<Description>.NET nanoFirmwareFlasher tool to flash firmware images to target devices.</Description>
</PropertyGroup>

<PropertyGroup>
<!-- disable NuGet warning for DLLs outside the lib folder and for SemVer 2 package reference -->
<NoWarn>$(NoWarn);NU5100;NU5105</NoWarn>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageIcon>images\nf-logo.png</PackageIcon>
<PackageTags>nanoFramework, nano Framework, NETNF, NETMF, Micro Framework, .net</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

<PropertyGroup>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<RestoreLockedMode>true</RestoreLockedMode>
</PropertyGroup>

<Target Name="CopyToolsContent" AfterTargets="Build">
Expand Down
Loading

0 comments on commit 27cda01

Please sign in to comment.