Cache nuget packages

This commit is contained in:
Bogdan
2026-09-05 09:34:21 -07:00
committed by Mark McDowall
parent 5bebd38100
commit 22e0f2bc4f
+8 -4
View File
@@ -20,6 +20,14 @@ inputs:
runs:
using: "composite"
steps:
- name: Cache nuget packages
uses: actions/cache@v6
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/*.csproj', '**/Directory.*.props') }}
restore-keys:
${{ runner.os }}-nuget-
- name: Setup .NET
uses: actions/setup-dotnet@v6
@@ -39,10 +47,6 @@ runs:
echo "SONARR_VERSION=${{ inputs.version }}" >> "$GITHUB_ENV"
echo "BRANCH=${{ inputs.branch }}" >> "$GITHUB_ENV"
if [ "$RUNNER_OS" == "Windows" ]; then
echo "NUGET_PACKAGES=D:\nuget\packages" >> "$GITHUB_ENV"
fi
- name: Enable Extra Platforms In SDK
if: ${{ inputs.runtime == 'freebsd-x64' }}
shell: bash