Skip to content

Commit 79b8904

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

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ 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('Cargo.lock',
52+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
53+
'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
5254
path: |
5355
lib
5456
target
@@ -114,7 +116,9 @@ jobs:
114116
uses: actions/cache/restore@v4
115117
id: splicer-build
116118
with:
117-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
119+
key: splicer-${{ hashFiles('Cargo.lock',
120+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
121+
'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
118122
path: |
119123
lib
120124
target
@@ -175,7 +179,9 @@ jobs:
175179
uses: actions/cache/restore@v4
176180
id: splicer-build
177181
with:
178-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
182+
key: splicer-${{ hashFiles('Cargo.lock',
183+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
184+
'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
179185
path: |
180186
lib
181187
target
@@ -212,7 +218,9 @@ jobs:
212218
uses: actions/cache/restore@v4
213219
id: splicer-build
214220
with:
215-
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
221+
key: splicer-${{ hashFiles('Cargo.lock',
222+
'crates/spidermonkey-embedding-splicer/Cargo.toml',
223+
'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
216224
path: |
217225
lib
218226
target

0 commit comments

Comments
 (0)