|
2 | 2 | aspects_flags: &aspects_flags
|
3 | 3 | - "--config=rustfmt"
|
4 | 4 | - "--config=clippy"
|
| 5 | +nightly_aspects_flags: &nightly_aspects_flags |
| 6 | + - "--//rust/toolchain/channel=nightly" |
| 7 | + - "--config=rustfmt" |
| 8 | + - "--config=clippy" |
| 9 | +nightly_flags: &nightly_flags |
| 10 | + - "--//rust/toolchain/channel=nightly" |
| 11 | +nightly_targets: &nightly_targets |
| 12 | + - "--" |
| 13 | + - "//..." |
| 14 | + # There will not be a stable toolchain registered so this test will expectedly fail. |
| 15 | + - "-//test/unit/channel_transitions/..." |
5 | 16 | default_linux_targets: &default_linux_targets
|
6 | 17 | - "//..."
|
7 | 18 | default_macos_targets: &default_macos_targets
|
@@ -202,6 +213,24 @@ tasks:
|
202 | 213 | build_targets: *default_linux_targets
|
203 | 214 | test_targets: *default_linux_targets
|
204 | 215 | build_flags: *aspects_flags
|
| 216 | + ubuntu2004_nightly_toolchain: |
| 217 | + name: "Nightly Toolchain" |
| 218 | + platform: ubuntu2004 |
| 219 | + # Test rules while only registering a nightly toolchain |
| 220 | + shell_commands: |
| 221 | + - 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 |
| 222 | + build_flags: *nightly_flags |
| 223 | + build_targets: *nightly_targets |
| 224 | + test_targets: *nightly_targets |
| 225 | + ubuntu2004_nightly_with_aspects: |
| 226 | + name: "Nightly Toolchain With Aspects" |
| 227 | + platform: ubuntu2004 |
| 228 | + # Test rules while only registering a nightly toolchain |
| 229 | + shell_commands: |
| 230 | + - 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 |
| 231 | + build_flags: *nightly_aspects_flags |
| 232 | + build_targets: *nightly_targets |
| 233 | + test_targets: *nightly_targets |
205 | 234 | ubuntu2004_rolling_with_aspects:
|
206 | 235 | name: "Rolling Bazel Version With Aspects"
|
207 | 236 | bazel: "rolling"
|
|
0 commit comments