Skip to content

Commit a66801b

Browse files
committedAug 14, 2024·
ci: add style component
1 parent 1ff744c commit a66801b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
 

‎ci.jsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ local libgraal(builds, include=true) = [b for b in builds if (std.findSubstr("li
4848
ci_resources:: (import 'ci/ci_common/ci-resources.libsonnet'),
4949
overlay: graal_common.ci.overlay,
5050
specVersion: "4",
51-
builds: [common.add_excludes_guard(b) for b in (
51+
builds: [common.add_excludes_guard(common.with_style_component(b)) for b in (
5252
common.with_components(compiler.builds + libgraal(vm.builds), ["compiler"]) +
5353
common.with_components(wasm.builds, ["wasm"]) +
5454
common.with_components(espresso.builds, ["espresso"]) +

‎ci/ci_common/common.jsonnet

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file is only shared between the graal and graal-enterprise repositories.
22

33
local common = import "../common.jsonnet";
4+
local utils = import "common-utils.libsonnet";
45
local repo_config = import '../repo-configuration.libsonnet';
56

67
common + common.frequencies + {
@@ -55,6 +56,13 @@ common + common.frequencies + {
5556
build + { "components" : components }
5657
for build in builds
5758
],
59+
# Add the specified components to the field `components`.
60+
with_style_component(build)::
61+
if std.objectHas(build, "name") && utils.contains(build.name, "-style-") then
62+
$.with_components([build], ["style"])[0]
63+
else
64+
build
65+
,
5866

5967
// Heap settings
6068
// *************

0 commit comments

Comments
 (0)
Please sign in to comment.