Skip to content

Commit 3e82792

Browse files
committed
Use azure condition for rust-src.
1 parent 0b051c7 commit 3e82792

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ci/azure-test-all.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ steps:
1717
displayName: "Install clippy (maybe)"
1818

1919
# This is needed for standard library tests.
20-
- bash: |
21-
if [ "$TOOLCHAIN" = "nightly" ]; then
22-
rustup component add rust-src
23-
fi
20+
- bash: rustup component add rust-src
21+
condition: and(succeeded(), eq(variables['TOOLCHAIN'], 'nightly'))
2422
displayName: "Install rust-src (maybe)"
2523

2624
# Deny warnings on CI to avoid warnings getting into the codebase, and note the

0 commit comments

Comments
 (0)