Skip to content

Commit

Permalink
ci: add style component
Browse files Browse the repository at this point in the history
  • Loading branch information
zapster committed Aug 14, 2024
1 parent 1ff744c commit a66801b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ local libgraal(builds, include=true) = [b for b in builds if (std.findSubstr("li
ci_resources:: (import 'ci/ci_common/ci-resources.libsonnet'),
overlay: graal_common.ci.overlay,
specVersion: "4",
builds: [common.add_excludes_guard(b) for b in (
builds: [common.add_excludes_guard(common.with_style_component(b)) for b in (
common.with_components(compiler.builds + libgraal(vm.builds), ["compiler"]) +
common.with_components(wasm.builds, ["wasm"]) +
common.with_components(espresso.builds, ["espresso"]) +
Expand Down
8 changes: 8 additions & 0 deletions ci/ci_common/common.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This file is only shared between the graal and graal-enterprise repositories.

local common = import "../common.jsonnet";
local utils = import "common-utils.libsonnet";
local repo_config = import '../repo-configuration.libsonnet';

common + common.frequencies + {
Expand Down Expand Up @@ -55,6 +56,13 @@ common + common.frequencies + {
build + { "components" : components }
for build in builds
],
# Add the specified components to the field `components`.
with_style_component(build)::
if std.objectHas(build, "name") && utils.contains(build.name, "-style-") then
$.with_components([build], ["style"])[0]
else
build
,

// Heap settings
// *************
Expand Down

0 comments on commit a66801b

Please sign in to comment.