diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6f148680f3..2f2abca08b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -44,6 +44,17 @@ jobs: with: fetch-depth: 0 + - name: Setup Dev Drive (Windows) + if: matrix.os == 'windows-latest' + uses: samypr100/setup-dev-drive@v4 + with: + drive-size: 10GB + trusted-dev-drive: true + env-mapping: | + NUGET_PACKAGES,{{ DEV_DRIVE }}/.nuget/packages + TEMP,{{ DEV_DRIVE }}/tmp + TMP,{{ DEV_DRIVE }}/tmp + - name: Check for .received.txt files shell: bash run: | @@ -78,7 +89,7 @@ jobs: continue-on-error: true with: path: | - ~/.nuget/packages + ${{ env.NUGET_PACKAGES || '~/.nuget/packages' }} ~/.local/share/NuGet %LocalAppData%\NuGet\v3-cache key: nuget-${{ runner.os }}-${{ hashFiles('**/Directory.Packages.props', '**/*.csproj') }}