ci: invalidate snapshot cache on src/browser/js/Snapshot.zig

This commit is contained in:
Pierre Tachoire
2026-04-10 09:52:43 +02:00
parent 075a660b2f
commit ca78bd7786

View File

@@ -51,9 +51,12 @@ jobs:
- uses: ./.github/actions/install
# Use the commit hash of src/browser/js/bridge.zig as cache key for
# Use the commit hash of bridge.zig and Snapshot.zig as cache key for
# snapshot.
- run: echo "hash=v8-snapshot-$(git log -n 1 --pretty=format:%H -- src/browser/js/bridge.zig)" >> "$GITHUB_OUTPUT"
- run: echo "hash=v8-snapshot-$(git log -n 1 --pretty=format:%H -- \
src/browser/js/bridge.zig \
src/browser/js/Snapshot.zig \
)" >> "$GITHUB_OUTPUT"
id: snapshot_cache_key
# Fetch the cache for snapshot