graal/ci.jsonnet

69 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

2022-07-12 02:12:34 +08:00
# Common
2022-11-23 23:05:44 +08:00
local common = import 'ci/ci_common/common.jsonnet';
2022-07-20 22:18:01 +08:00
local graal_common = import 'graal-common.json';
# Compiler
2022-08-03 20:27:54 +08:00
local compiler = import 'compiler/ci/ci.jsonnet';
2021-01-20 21:01:28 +08:00
# GraalWasm
2022-08-03 20:27:54 +08:00
local wasm = import 'wasm/ci/ci.jsonnet';
2019-10-28 17:54:04 +08:00
2021-01-20 21:01:28 +08:00
# Espresso
2022-08-03 20:27:54 +08:00
local espresso = import 'espresso/ci/ci.jsonnet';
2021-01-20 21:01:28 +08:00
2021-10-28 04:59:41 +08:00
# Regex
2022-08-03 20:27:54 +08:00
local regex = import 'regex/ci/ci.jsonnet';
2021-10-28 04:59:41 +08:00
2021-10-25 17:48:36 +08:00
# SDK
2022-08-03 20:27:54 +08:00
local sdk = import 'sdk/ci/ci.jsonnet';
2021-10-25 17:48:36 +08:00
2022-02-02 16:51:30 +08:00
# SubstrateVM
2022-08-03 20:27:54 +08:00
local substratevm = import 'substratevm/ci/ci.jsonnet';
2022-02-02 16:51:30 +08:00
# Sulong
2022-08-03 20:27:54 +08:00
local sulong = import 'sulong/ci/ci.jsonnet';
2021-10-28 17:39:40 +08:00
# Tools
2022-08-03 20:27:54 +08:00
local tools = import 'tools/ci/ci.jsonnet';
2021-10-28 17:39:40 +08:00
2021-10-29 14:11:17 +08:00
# Truffle
2022-08-03 20:27:54 +08:00
local truffle = import 'truffle/ci/ci.jsonnet';
2021-10-29 14:11:17 +08:00
# JavaDoc
local javadoc = import "ci_includes/publish-javadoc.jsonnet";
# VM
2022-08-03 20:27:54 +08:00
local vm = import 'vm/ci/ci_includes/vm.jsonnet';
2022-08-12 12:47:17 +08:00
# Visualizer
local visualizer = import 'visualizer/ci/ci.jsonnet';
2022-11-23 23:05:44 +08:00
local verify_ci = (import 'ci/ci_common/ci-check.libsonnet').verify_ci;
# Filter builds to include/exclude jobs whose name contains "libgraal"
local libgraal(builds, include=true) = [b for b in builds if (std.findSubstr("libgraal", b.name) != []) == include];
2019-10-28 17:54:04 +08:00
{
# Ensure that non-hidden entries in ci/common.jsonnet and ci/ci_common/common.jsonnet can be resolved.
assert std.length(std.toString(import 'ci/ci_common/common.jsonnet')) > 0,
2022-11-23 23:05:44 +08:00
ci_resources:: (import 'ci/ci_common/ci-resources.libsonnet'),
2022-07-20 22:18:01 +08:00
overlay: graal_common.ci.overlay,
2024-05-02 18:16:18 +08:00
specVersion: "4",
2024-08-14 15:58:54 +08:00
builds: [common.add_excludes_guard(common.with_style_component(b)) for b in (
common.with_components(compiler.builds + libgraal(vm.builds), ["compiler"]) +
2023-12-07 22:41:22 +08:00
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(libgraal(vm.builds, false), ["vm"]) +
2023-12-07 22:41:22 +08:00
common.with_components(visualizer.builds, ["visualizer"])
)],
assert verify_ci(self.builds),
2022-10-24 16:48:55 +08:00
// verify that the run-spec demo works
assert (import "ci/ci_common/run-spec-demo.jsonnet").check(),
2019-10-28 17:54:04 +08:00
}