Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,24 @@ if ($null -ne $packageType) {
& $rustup default stable
}

if ($Clippy) {
Write-Verbose -Verbose "Installing clippy..."
if ($UseCFS) {
cargo install clippy --config .cargo/config.toml
} else {
if ($architecture -ne 'current') {
write-verbose -verbose "Installing clippy for $architecture"
& $rustup component add clippy --target $architecture
} else {
write-verbose -verbose "Installing clippy for current architecture"
& $rustup component add clippy
}
}
if ($LASTEXITCODE -ne 0) {
throw "Failed to install clippy"
}
}

## Test if Node is installed
## Skipping upgrade as users may have a specific version they want to use
if (!(Get-Command 'node' -ErrorAction Ignore)) {
Expand Down
Loading