diff --git a/.github/workflows/build-emule.yml b/.github/workflows/build-emule.yml index d9a80a9d..be8226a0 100644 --- a/.github/workflows/build-emule.yml +++ b/.github/workflows/build-emule.yml @@ -72,6 +72,14 @@ jobs: --add Microsoft.VisualStudio.Component.VC.ATLMFC ` --quiet --wait + - name: Cache NuGet packages + uses: actions/cache@v4 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/packages.config') }} + restore-keys: | + ${{ runner.os }}-nuget- + - name: Restore NuGet packages working-directory: ${{ github.workspace }} run: nuget restore "${{ env.SOLUTION_FILE_PATH }}" @@ -169,6 +177,14 @@ jobs: --add Microsoft.VisualStudio.Component.VC.ATLMFC ` --quiet --wait + - name: Cache NuGet packages + uses: actions/cache@v4 + with: + path: ~/.nuget/packages + key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json', '**/packages.config') }} + restore-keys: | + ${{ runner.os }}-nuget- + - name: Restore NuGet packages working-directory: ${{ github.workspace }} run: nuget restore "${{ env.SOLUTION_FILE_PATH }}"