Skip to content

Commit

Permalink
housekeeping: Cache NuGet packages (#422)
Browse files Browse the repository at this point in the history
* housekeeping: make a release job

* Further refinements

* Further work

* Update to latest msbuild.sdk.extras

* further work

* Restore cache
  • Loading branch information
glennawatson authored Oct 6, 2020
1 parent 5730dae commit 2bc6f48
Show file tree
Hide file tree
Showing 7 changed files with 3,155 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,18 @@ jobs:
with:
setAllVars: true

- name: Restore NuGet Packages
- uses: actions/cache@v1
name: Cache NuGet
id: cache
with:
path: '~/.nuget/packages'
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}

- name: NuGet Restore
if: steps.cache.outputs.cache-hit != 'true'
run: dotnet restore
working-directory: src

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.1

Expand Down
2 changes: 2 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<RepositoryUrl>https://github.com/reactiveui/DynamicData</RepositoryUrl>
<RepositoryType>git</RepositoryType>

<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>

<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
Expand Down
2 changes: 1 addition & 1 deletion src/DynamicData.Benchmarks/DynamicData.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PlatformTarget>AnyCPU</PlatformTarget>
<IsPackable>false</IsPackable>
<NoWarn>;1591;1701;1702;1705;CA1822;CA1001</NoWarn>
Expand Down
Loading

0 comments on commit 2bc6f48

Please sign in to comment.