diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 285ffe9f9..7ba429bf5 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -38,8 +38,10 @@ jobs: - name: Get cached packages uses: actions/cache/restore@v4 with: - path: ~/.nuget/packages - key: nuget-${{ hashFiles('**/packages.lock.json') }} + path: | + ~/.nuget/packages + ~/.local/share/.librarymanager/cache + key: ${{ hashFiles('**/packages.lock.json', '**/libman.json') }} - name: Docker build & push run: | diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 69f8dde5d..110d45276 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -130,8 +130,10 @@ jobs: id: cache-packages-restore uses: actions/cache/restore@v4 with: - path: ~/.nuget/packages - key: nuget-${{ hashFiles('**/packages.lock.json') }} + path: | + ~/.nuget/packages + ~/.local/share/.librarymanager/cache + key: ${{ hashFiles('**/packages.lock.json', '**/libman.json') }} - name: Restore run: just restore @@ -140,7 +142,9 @@ jobs: id: cache-packages-save uses: actions/cache/save@v4 with: - path: ~/.nuget/packages + path: | + ~/.nuget/packages + ~/.local/share/.librarymanager/cache key: ${{ steps.cache-packages-restore.outputs.cache-primary-key }} if: steps.cache-packages-restore.outputs.cache-hit != 'true'