Skip to content

Commit 588fa3e

Browse files
authored
ci/bazel: Add wee8 to correct release workflow prepare step (#5047)
Signed-off-by: Ryan Northey <ryan@synca.io>
1 parent 922ed83 commit 588fa3e

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/_release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,18 @@ jobs:
295295
"sed -i '0,/\"\($platform)\": \"\"/s//\"\($platform)\": \"\($new_sha)\"/' \($versions_file)"
296296
end
297297
else "" end] as $llvm_minimal_updates
298-
| $bins_update + $san_updates + $libcxx_updates + $arch_updates + $macos_updates + $llvm_minimal_updates
298+
| [["x86_64", "aarch64"][]
299+
| . as $arch
300+
| ($shas["v8-wee8-\($current.v8)-linux-\($arch).tar.xz"] // null) as $sha_entry
301+
| if $sha_entry then
302+
($sha_entry | split(":") | .[1]) as $new_sha
303+
| $current.wee8_sha256[$arch] as $cur
304+
| if $cur == $new_sha then ""
305+
else
306+
"sed -i '/\"wee8_sha256\"/,/^ },/{s/\"\($arch)\": \"[a-f0-9]*\"/\"\($arch)\": \"\($new_sha)\"/}' \($versions_file)"
307+
end
308+
else "" end] as $wee8_updates
309+
| $bins_update + $san_updates + $libcxx_updates + $arch_updates + $macos_updates + $llvm_minimal_updates + $wee8_updates
299310
| [flatten[]
300311
| select(. != "")]
301312
| join("\n")

bazel/versions.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ LLVM_DISTRIBUTIONS = {
3939
VERSIONS = {
4040
"cmake": "3.23.2",
4141
"llvm": LLVM_VERSION,
42+
"v8": V8_VERSION,
4243
"ninja": "1.12.0",
4344
"python": "3.12",
4445
"bins_release": BINS_RELEASE,

0 commit comments

Comments
 (0)