Skip to content

Commit 90c5b6e

Browse files
authored
Added CI for minimum supported Rust version (#1720)
1 parent be82ff8 commit 90c5b6e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.bazelci/presubmit.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
aspects_flags: &aspects_flags
33
- "--config=rustfmt"
44
- "--config=clippy"
5+
min_rust_version_shell_commands: &min_rust_version_shell_commands
6+
- sed -i 's|^rust_register_toolchains(|rust_register_toolchains(versions = ["1.59.0"],\n|' WORKSPACE.bazel
7+
single_rust_channel_targets: &single_rust_channel_targets
8+
- "--"
9+
- "//..."
10+
# These tests are expected to fail as they require both a nightly and stable toolchain.
11+
- "-//test/unit/channel_transitions/..."
512
default_linux_targets: &default_linux_targets
613
- "//..."
714
default_macos_targets: &default_macos_targets
@@ -202,6 +209,19 @@ tasks:
202209
build_targets: *default_linux_targets
203210
test_targets: *default_linux_targets
204211
build_flags: *aspects_flags
212+
ubuntu2004_min_rust_version:
213+
name: "Min Rust Version"
214+
platform: ubuntu2004
215+
shell_commands: *min_rust_version_shell_commands
216+
build_targets: *single_rust_channel_targets
217+
test_targets: *single_rust_channel_targets
218+
ubuntu2004_min_rust_version_with_aspects:
219+
name: "Min Rust Version With Aspects"
220+
platform: ubuntu2004
221+
shell_commands: *min_rust_version_shell_commands
222+
build_targets: *single_rust_channel_targets
223+
test_targets: *single_rust_channel_targets
224+
build_flags: *aspects_flags
205225
ubuntu2004_rolling_with_aspects:
206226
name: "Rolling Bazel Version With Aspects"
207227
bazel: "rolling"

0 commit comments

Comments
 (0)