From 0ae274e4d325e21fbd53610b60e56873202a675e Mon Sep 17 00:00:00 2001 From: Ravinder Date: Sat, 18 Oct 2025 23:10:14 +0100 Subject: [PATCH] feat: added Cache NuGet packages action in yml file to speed up builds --- .github/workflows/ci-cd.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 52a8974..c93b734 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -19,6 +19,13 @@ jobs: uses: actions/setup-dotnet@v3 # Predefined action to setup dotnet with: #<-- provide parameters to the action dotnet-version: '8.0.x' # Specify the .NET version to install + - name: Cache NuGet Packages # Step 2.1: Cache NuGet packages to speed up builds + uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} + restore-keys: | + ${{ runner.os }}-nuget- - name: Restore dependencies # Step 3: Restore the dependencies run: dotnet restore $SOLUTION_PATH