Skip to content

Commit 758d7f3

Browse files
fix(ci): use Cargo.toml in splicer
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent 54ab085 commit 758d7f3

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

.github/workflows/main.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ jobs:
4848
uses: actions/cache@v4
4949
id: splicer-build
5050
with:
51-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
51+
key: >-
52+
splicer-${{ hashFiles(
53+
'Cargo.lock',
54+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
55+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
56+
) }}
5257
path: |
5358
lib
5459
target
@@ -114,7 +119,12 @@ jobs:
114119
uses: actions/cache/restore@v4
115120
id: splicer-build
116121
with:
117-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
122+
key: >-
123+
splicer-${{ hashFiles(
124+
'Cargo.lock',
125+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
126+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
127+
) }}
118128
path: |
119129
lib
120130
target
@@ -175,7 +185,12 @@ jobs:
175185
uses: actions/cache/restore@v4
176186
id: splicer-build
177187
with:
178-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
188+
key: >-
189+
splicer-${{ hashFiles(
190+
'Cargo.lock',
191+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
192+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
193+
) }}
179194
path: |
180195
lib
181196
target
@@ -212,7 +227,12 @@ jobs:
212227
uses: actions/cache/restore@v4
213228
id: splicer-build
214229
with:
215-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
230+
key: >-
231+
splicer-${{ hashFiles(
232+
'Cargo.lock',
233+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
234+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
235+
) }}
216236
path: |
217237
lib
218238
target

0 commit comments

Comments
 (0)