Skip to content

Commit

Permalink
CI: Better fix for nuget restore issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Jan 25, 2021
1 parent e879620 commit 377faa6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ jobs:
- name: Setup msbuild
uses: microsoft/setup-msbuild@v1

- name: Clear package cache # workaround for actions/setup-dotnet#155
run: dotnet nuget locals all --clear

- name: Build
run: dotnet build ${{ env.BuildParameters }} /p:Platform=Windows /t:Package /bl:artifacts/log/Build.Windows.binlog

Expand Down
8 changes: 8 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>

0 comments on commit 377faa6

Please sign in to comment.