Skip to content

Commit

Permalink
Fix caching steps in building workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
acidicMercury8 committed Jan 15, 2025
1 parent eccb1a5 commit 4337477
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-hasher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Hasher-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Hasher-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Hasher-NuGet-${{ hashFiles('**/packages.lock.json') }}
Hasher-NuGet-${{ hashFiles('Directory.Packages.props') }}
Hasher-NuGet-
path: |
~/.nuget/packages
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Hasher-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Hasher-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Hasher-NuGet-${{ hashFiles('**/packages.lock.json') }}
Hasher-NuGet-${{ hashFiles('Directory.Packages.props') }}
Hasher-NuGet-
path: |
~/.nuget/packages
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build-launcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Launcher-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Launcher-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Launcher-NuGet-${{ hashFiles('**/packages.lock.json') }}
Launcher-NuGet-${{ hashFiles('Directory.Packages.props') }}
Launcher-NuGet-
path: |
~/.nuget/packages
Expand Down Expand Up @@ -114,9 +114,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Updater-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Updater-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Updater-NuGet-${{ hashFiles('**/packages.lock.json') }}
Updater-NuGet-${{ hashFiles('Directory.Packages.props') }}
Updater-NuGet-
path: |
~/.nuget/packages
Expand Down Expand Up @@ -173,9 +173,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Launcher-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Launcher-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Launcher-NuGet-${{ hashFiles('**/packages.lock.json') }}
Launcher-NuGet-${{ hashFiles('Directory.Packages.props') }}
Launcher-NuGet-
path: |
~/.nuget/packages
Expand Down Expand Up @@ -234,9 +234,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Updater-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Updater-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Updater-NuGet-${{ hashFiles('**/packages.lock.json') }}
Updater-NuGet-${{ hashFiles('Directory.Packages.props') }}
Updater-NuGet-
path: |
~/.nuget/packages
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Legacy-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }}
Legacy-NuGet-${{ hashFiles('Directory.Packages.props') }}
Legacy-NuGet-
path: |
~/.nuget/packages
Expand Down Expand Up @@ -118,9 +118,9 @@ jobs:
- name: Cache dependencies
uses: actions/cache@v4
with:
key: Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }}
key: Legacy-NuGet-${{ hashFiles('Directory.Packages.props') }}
restore-keys: |
Legacy-NuGet-${{ hashFiles('**/packages.lock.json') }}
Legacy-NuGet-${{ hashFiles('Directory.Packages.props') }}
Legacy-NuGet-
path: |
~/.nuget/packages
Expand Down

0 comments on commit 4337477

Please sign in to comment.