Skip to content

Commit b6926df

Browse files
committed
update cache keys to use matrix.os
1 parent 012274f commit b6926df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ jobs:
105105
cache-name: node
106106
with:
107107
path: ${{ steps.npm-cache-dir.outputs.dir }}
108-
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
108+
key: ${{ matrix.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
109109
restore-keys: |
110-
${{ runner.os }}-${{ env.cache-name }}-
110+
${{ matrix.os }}-${{ env.cache-name }}-
111111
112112
- name: Cache cargo build
113113
uses: actions/cache@v4
@@ -117,9 +117,9 @@ jobs:
117117
with:
118118
path: aw-server-rust/target
119119
# key needs to contain rustc_hash due to https://github.com/ActivityWatch/aw-server-rust/issues/180
120-
key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
120+
key: ${{ matrix.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
121121
restore-keys: |
122-
${{ runner.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-
122+
${{ matrix.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-
123123
124124
- name: Install APT dependencies
125125
if: runner.os == 'Linux'

0 commit comments

Comments
 (0)