Skip to content

Commit 29d818b

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

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ 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: splicer-${{ hashFiles(
52+
'Cargo.lock',
53+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
54+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
55+
) }}
5256
path: |
5357
lib
5458
target
@@ -114,7 +118,11 @@ jobs:
114118
uses: actions/cache/restore@v4
115119
id: splicer-build
116120
with:
117-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
121+
key: splicer-${{ hashFiles(
122+
'Cargo.lock',
123+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
124+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
125+
) }}
118126
path: |
119127
lib
120128
target
@@ -175,7 +183,11 @@ jobs:
175183
uses: actions/cache/restore@v4
176184
id: splicer-build
177185
with:
178-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
186+
key: splicer-${{ hashFiles(
187+
'Cargo.lock',
188+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
189+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
190+
) }}
179191
path: |
180192
lib
181193
target
@@ -212,7 +224,11 @@ jobs:
212224
uses: actions/cache/restore@v4
213225
id: splicer-build
214226
with:
215-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
227+
key: splicer-${{ hashFiles(
228+
'Cargo.lock',
229+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
230+
'crates/spidermonkey-embedding-splicer/src/**/*.rs'
231+
) }}
216232
path: |
217233
lib
218234
target

0 commit comments

Comments
 (0)