@@ -4,6 +4,12 @@ aspects_flags: &aspects_flags
4
4
- " --config=clippy"
5
5
min_rust_version_shell_commands : &min_rust_version_shell_commands
6
6
- sed -i 's|^rust_register_toolchains(|rust_register_toolchains(versions = ["1.59.0"],\n|' WORKSPACE.bazel
7
+ nightly_flags : &nightly_flags
8
+ - " --//rust/toolchain/channel=nightly"
9
+ nightly_aspects_flags : &nightly_aspects_flags
10
+ - " --//rust/toolchain/channel=nightly"
11
+ - " --config=rustfmt"
12
+ - " --config=clippy"
7
13
single_rust_channel_targets : &single_rust_channel_targets
8
14
- " --"
9
15
- " //..."
@@ -219,9 +225,48 @@ tasks:
219
225
name : " Min Rust Version With Aspects"
220
226
platform : ubuntu2004
221
227
shell_commands : *min_rust_version_shell_commands
228
+ build_flags : *aspects_flags
229
+ build_targets : *single_rust_channel_targets
230
+ test_flags : *aspects_flags
231
+ test_targets : *single_rust_channel_targets
232
+ ubuntu2004_stable_toolchain :
233
+ name : " Only Stable Toolchain"
234
+ platform : ubuntu2004
235
+ # Test rules while only registering a nightly toolchain
236
+ shell_commands :
237
+ - sed -i 's|^rust_register_toolchains(|load("//rust/private:common.bzl", "DEFAULT_RUST_VERSION")\nrust_register_toolchains(versions = [DEFAULT_RUST_VERSION],\n|' WORKSPACE.bazel
222
238
build_targets : *single_rust_channel_targets
223
239
test_targets : *single_rust_channel_targets
240
+ ubuntu2004_stable_with_aspects :
241
+ name : " Only Stable Toolchain With Aspects"
242
+ platform : ubuntu2004
243
+ # Test rules while only registering a nightly toolchain
244
+ shell_commands :
245
+ - sed -i 's|^rust_register_toolchains(|load("//rust/private:common.bzl", "DEFAULT_RUST_VERSION")\nrust_register_toolchains(versions = [DEFAULT_RUST_VERSION],\n|' WORKSPACE.bazel
224
246
build_flags : *aspects_flags
247
+ build_targets : *single_rust_channel_targets
248
+ test_flags : *aspects_flags
249
+ test_targets : *single_rust_channel_targets
250
+ ubuntu2004_nightly_toolchain :
251
+ name : " Only Nightly Toolchain"
252
+ platform : ubuntu2004
253
+ # Test rules while only registering a nightly toolchain
254
+ shell_commands :
255
+ - sed -i 's|^rust_register_toolchains(|load("//rust/private:common.bzl", "DEFAULT_NIGHTLY_ISO_DATE")\nrust_register_toolchains(versions = ["nightly/" + DEFAULT_NIGHTLY_ISO_DATE],\n|' WORKSPACE.bazel
256
+ build_flags : *nightly_flags
257
+ build_targets : *single_rust_channel_targets
258
+ test_flags : *nightly_flags
259
+ test_targets : *single_rust_channel_targets
260
+ ubuntu2004_nightly_with_aspects :
261
+ name : " Only Nightly Toolchain With Aspects"
262
+ platform : ubuntu2004
263
+ # Test rules while only registering a nightly toolchain
264
+ shell_commands :
265
+ - sed -i 's|^rust_register_toolchains(|load("//rust/private:common.bzl", "DEFAULT_NIGHTLY_ISO_DATE")\nrust_register_toolchains(versions = ["nightly/" + DEFAULT_NIGHTLY_ISO_DATE],\n|' WORKSPACE.bazel
266
+ build_flags : *nightly_aspects_flags
267
+ build_targets : *single_rust_channel_targets
268
+ test_flags : *nightly_aspects_flags
269
+ test_targets : *single_rust_channel_targets
225
270
ubuntu2004_rolling_with_aspects :
226
271
name : " Rolling Bazel Version With Aspects"
227
272
bazel : " rolling"
0 commit comments