From c38158550c607f3c06f3f674b84b7078c7bf4a1d Mon Sep 17 00:00:00 2001 From: Kevin van den Broek Date: Sat, 13 Apr 2024 20:53:07 +0200 Subject: [PATCH] Use specific language tests tasks The bazelci system does not seem to hydrate list values in a task attribute. See: https://github.com/bazelbuild/continuous-integration/blob/9f04f3ef19b132ab0c407cfbc0eb33f211290043/buildkite/bazelci.py#L949 --- .bazelci/presubmit.yml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index a170f84..91f0bb0 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -3,10 +3,6 @@ matrix: platform: - ubuntu2204 - macos - toolchain: - - "@rules_jsonnet//jsonnet:go_jsonnet_toolchain" - - "@rules_jsonnet//jsonnet:cpp_jsonnet_toolchain" - - "@rules_jsonnet//jsonnet:rust_jsonnet_toolchain" tasks: rules_jsonnet: @@ -19,16 +15,32 @@ tasks: name: docs platform: ${{ platform }} working_directory: docs + test_targets: + - //... + + examples_go: + name: examples + platform: ${{ platform }} + working_directory: examples + test_flags: + - "--extra_toolchains=@rules_jsonnet//jsonnet:go_jsonnet_toolchain" + test_targets: + - //... + + examples_cpp: + name: examples + platform: ${{ platform }} + working_directory: examples test_flags: - - "--extra_toolchains=${{ toolchain }}" + - "--extra_toolchains=@rules_jsonnet//jsonnet:cpp_jsonnet_toolchain" test_targets: - //... - examples: + examples_rust: name: examples platform: ${{ platform }} working_directory: examples test_flags: - - "--extra_toolchains=${{ toolchain }}" + - "--extra_toolchains=@rules_jsonnet//jsonnet:rust_jsonnet_toolchain" test_targets: - //...