Skip to content

Commit

Permalink
[GR-50337] Add tags to build jobs
Browse files Browse the repository at this point in the history
PullRequest: graal/16202
  • Loading branch information
liufengyun committed Dec 14, 2023
2 parents 4455459 + 752028f commit 1086864
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
24 changes: 12 additions & 12 deletions ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,18 @@ local exclude_latest_darwin_amd64(builds) = [b for b in builds if !(import 'ci/c
overlay: graal_common.ci.overlay,
specVersion: "3",
builds: exclude_latest_darwin_amd64([common.add_excludes_guard(b) for b in (
compiler.builds +
wasm.builds +
espresso.builds +
regex.builds +
sdk.builds +
substratevm.builds +
sulong.builds +
tools.builds +
truffle.builds +
javadoc.builds +
vm.builds +
visualizer.builds
common.with_components(compiler.builds, ["compiler"]) +
common.with_components(wasm.builds, ["wasm"]) +
common.with_components(espresso.builds, ["espresso"]) +
common.with_components(regex.builds, ["regex"]) +
common.with_components(sdk.builds, ["sdk"]) +
common.with_components(substratevm.builds, ["svm"]) +
common.with_components(sulong.builds, ["sulong"]) +
common.with_components(tools.builds, ["tools"]) +
common.with_components(truffle.builds, ["truffle"]) +
common.with_components(javadoc.builds, ["javadoc"]) +
common.with_components(vm.builds, ["vm"]) +
common.with_components(visualizer.builds, ["visualizer"])
)]),
assert verify_ci(self.builds),
// verify that the run-spec demo works
Expand Down
10 changes: 10 additions & 0 deletions ci/ci_common/common.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@ common + common.frequencies + {
} else {}
),

# Add the specified components to the field `components`.
with_components(builds, components)::
[
if std.objectHas(build, "components") then
build + { "components" : std.setUnion(components, build.components) }
else
build + { "components" : components }
for build in builds
],

// Heap settings
// *************
local small_heap = "1G",
Expand Down

0 comments on commit 1086864

Please sign in to comment.