ci: use v8 snapshot cache w/ wpt test

This commit is contained in:
Pierre Tachoire
2026-04-10 10:34:03 +02:00
parent 9cd79941bf
commit e53e4579ab
2 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,16 @@
name: "V8 snaphsot"
description: "Generate v8 snapshot"
inputs:
arch:
description: 'CPU arch used to select the v8 lib'
required: false
default: 'x86_64'
os:
description: 'OS used to select the v8 lib'
required: false
default: 'linux'
runs:
using: "composite"
@@ -9,7 +19,7 @@ runs:
# snapshot.
- name: V8 snapshot cache key
id: snapshot_cache_key
run: echo "hash=v8-snapshot-$(git log -n 1 --pretty=format:%H --
run: echo "hash=v8-snapshot-${{ inputs.os }}_${{ inputs.arch }}-$(git log -n 1 --pretty=format:%H --
src/browser/js/bridge.zig
src/browser/js/Snapshot.zig
)" >> "$GITHUB_OUTPUT"

View File

@@ -36,8 +36,10 @@ jobs:
os: ${{env.OS}}
arch: ${{env.ARCH}}
- name: v8 snapshot
run: zig build -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast snapshot_creator -- src/snapshot.bin
- uses: ./.github/actions/v8-snapshot
with:
os: ${{env.OS}}
arch: ${{env.ARCH}}
- name: zig build release
run: zig build -Dsnapshot_path=../../snapshot.bin -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=generic