From 4cea0ebd01adf90edb3fd8c492ad9ca4391a7a49 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Wed, 21 Dec 2022 09:09:11 -0800 Subject: [PATCH] Added CI for minimum supported Rust version --- .bazelci/presubmit.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 90db471381..4cf91f0157 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -2,6 +2,13 @@ aspects_flags: &aspects_flags - "--config=rustfmt" - "--config=clippy" +min_rust_version_shell_commands: &min_rust_version_shell_commands + - sed -i 's|^rust_register_toolchains(|rust_register_toolchains(versions = ["1.59.0"],\n|' WORKSPACE.bazel +single_rust_channel_targets: &single_rust_channel_targets + - "--" + - "//..." + # These tests are expected to fail as they require both a nightly and stable toolchain. + - "-//test/unit/channel_transitions/..." default_linux_targets: &default_linux_targets - "//..." default_macos_targets: &default_macos_targets @@ -202,6 +209,19 @@ tasks: build_targets: *default_linux_targets test_targets: *default_linux_targets build_flags: *aspects_flags + ubuntu2004_min_rust_version: + name: "Min Rust Version" + platform: ubuntu2004 + shell_commands: *min_rust_version_shell_commands + build_targets: *single_rust_channel_targets + test_targets: *single_rust_channel_targets + ubuntu2004_min_rust_version_with_aspects: + name: "Min Rust Version With Aspects" + platform: ubuntu2004 + shell_commands: *min_rust_version_shell_commands + build_targets: *single_rust_channel_targets + test_targets: *single_rust_channel_targets + build_flags: *aspects_flags ubuntu2004_rolling_with_aspects: name: "Rolling Bazel Version With Aspects" bazel: "rolling"