Skip to content

Commit

Permalink
use different nuget package location and config
Browse files Browse the repository at this point in the history
  • Loading branch information
jetersen committed Jan 10, 2022
1 parent a92c06b commit f342429
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
POWERSHELL_TELEMETRY_OPTOUT: 1
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

jobs:
build:
Expand All @@ -31,22 +32,16 @@ jobs:
if: matrix.cache
uses: actions/cache@v2
with:
path: ~/.nuget/packages
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: ${{ runner.os }}-nuget-

- name: Setup DotNet 6 Manually
if: startsWith(matrix.os, 'windows')
shell: pwsh
run: |
curl.exe -sSfLO https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.100/dotnet-sdk-6.0.100-win-x64.zip
mkdir dotnet-sdk-6
tar.exe -xf dotnet-sdk-6.0.100-win-x64.zip -C dotnet-sdk-6
- name: Setup DotNet 6
uses: jetersen/setup-dotnet@fix/usePwsh
with:
dotnet-version: 6.0.x

- name: DotNet restore
run: dotnet restore
run: |
dotnet new nugetconfig
dotnet restore -v n

0 comments on commit f342429

Please sign in to comment.