mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-10-02 02:44:37 +08:00
Cache nuget packages
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user