Skip to content

Commit 46d0313

Browse files
fix(ci): restore splicer before running tests
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent e51cf3d commit 46d0313

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ jobs:
164164
key: starlingmonkey-${{matrix.build-type}}-${{ steps.starlingmonkey-commit.outputs.STARLINGMONKEY_HASH }}
165165
path: lib
166166

167+
- name: Restore Embedding Splicer from cache
168+
uses: actions/cache/restore@v4
169+
id: splicer-build
170+
with:
171+
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
172+
path: |
173+
lib
174+
target
175+
167176
- uses: actions/setup-node@v4
168177
with:
169178
node-version: ${{matrix.node-version}}
@@ -192,6 +201,15 @@ jobs:
192201
key: starlingmonkey-release-${{ steps.starlingmonkey-commit.outputs.STARLINGMONKEY_HASH }}
193202
path: lib
194203

204+
- name: Restore Embedding Splicer from cache
205+
uses: actions/cache/restore@v4
206+
id: splicer-build
207+
with:
208+
key: splicer-${{ hashFiles('Cargo.lock', 'crates/spidermonkey-embedding-splicer/src/**/*.rs') }}
209+
path: |
210+
lib
211+
target
212+
195213
- uses: actions/setup-node@v4
196214
with:
197215
node-version: '23.10.0'
@@ -203,8 +221,8 @@ jobs:
203221
uses: actions/cache@v4
204222
with:
205223
path: 'examples/hello-world/host/target/release/wasmtime-test*'
206-
key: example-hello-world-cargo-${{ hashFiles('examples/hello-world/host/src/main.rs',
207-
'examples/hello-world/host/Cargo.lock',
224+
key: example-hello-world-cargo-${{ hashFiles('examples/hello-world/host/src/main.rs',
225+
'examples/hello-world/host/Cargo.lock',
208226
'examples/hello-world/guest/hello.wit') }}
209227

210228
- name: Test Example

test/test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,6 @@ suite('Bindings', () => {
243243
component,
244244
);
245245

246-
await writeFile(
247-
new URL(`/tmp/component.wasm`, import.meta.url),
248-
component,
249-
);
250-
251246
for (const file of Object.keys(files)) {
252247
let source = files[file];
253248
await writeFile(

0 commit comments

Comments
 (0)