Skip to content

Commit 9de8137

Browse files
authored
build: install clippy when building cli in ci (microsoft#184554)
1 parent 43742d8 commit 9de8137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/azure-pipelines/cli/cli-compile-and-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ parameters:
1111

1212
steps:
1313
- ${{ if parameters.VSCODE_CHECK_ONLY }}:
14-
- script: cargo clippy --target ${{ parameters.VSCODE_CLI_TARGET }} --bin=code
14+
- script: rustup component add clippy && cargo clippy --target ${{ parameters.VSCODE_CLI_TARGET }} --bin=code
1515
displayName: Lint ${{ parameters.VSCODE_CLI_TARGET }}
1616
workingDirectory: $(Build.SourcesDirectory)/cli
1717
env:
1818
CARGO_NET_GIT_FETCH_WITH_CLI: true
1919
${{ each pair in parameters.VSCODE_CLI_ENV }}:
2020
${{ pair.key }}: ${{ pair.value }}
21+
2122
- ${{ else }}:
2223
- script: cargo build --release --target ${{ parameters.VSCODE_CLI_TARGET }} --bin=code
2324
displayName: Compile ${{ parameters.VSCODE_CLI_TARGET }}

0 commit comments

Comments
 (0)