mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 17:46:32 -04:00
ci: use v8 snapshot cache w/ wpt test
This commit is contained in:
12
.github/actions/v8-snapshot/action.yml
vendored
12
.github/actions/v8-snapshot/action.yml
vendored
@@ -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"
|
||||
|
||||
6
.github/workflows/wpt.yml
vendored
6
.github/workflows/wpt.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user