mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
Merge pull request #1200 from dmitry-shibanov/v-dmshib/cargo-dep-win
Add cargo packages for windows
This commit is contained in:
@@ -22,7 +22,7 @@ $env:Path = Get-MachinePath
|
|||||||
|
|
||||||
# Install common tools
|
# Install common tools
|
||||||
rustup component add rustfmt clippy
|
rustup component add rustfmt clippy
|
||||||
cargo install bindgen cbindgen
|
cargo install bindgen cbindgen cargo-audit cargo-outdated
|
||||||
|
|
||||||
# Run script at startup for all users
|
# Run script at startup for all users
|
||||||
$cmdRustSymScript = @"
|
$cmdRustSymScript = @"
|
||||||
|
|||||||
@@ -17,3 +17,13 @@ else
|
|||||||
Write-Host "rustc is not on the path"
|
Write-Host "rustc is not on the path"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (-Not (Get-Command -Name 'cargo-audit')){
|
||||||
|
Write-Host "cargo audit is not on the path"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if (-Not (Get-Command -Name 'cargo-outdated')){
|
||||||
|
Write-Host "cargo outdated is not on the path"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
@@ -37,6 +37,22 @@ function Get-RustVersion {
|
|||||||
return "Rust ${rustVersion}"
|
return "Rust ${rustVersion}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-BindgenVersion {
|
||||||
|
return bindgen --version
|
||||||
|
}
|
||||||
|
|
||||||
|
function Get-CbindgenVersion {
|
||||||
|
return cbindgen --version
|
||||||
|
}
|
||||||
|
|
||||||
|
function Get-CargoAuditVersion {
|
||||||
|
return cargo audit --version
|
||||||
|
}
|
||||||
|
|
||||||
|
function Get-CargoOutdatedVersion {
|
||||||
|
return cargo outdated --version
|
||||||
|
}
|
||||||
|
|
||||||
function Get-PythonVersion {
|
function Get-PythonVersion {
|
||||||
return & python --version
|
return & python --version
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,14 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
|||||||
(Get-GoogleCloudSDKVersion)
|
(Get-GoogleCloudSDKVersion)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$markdown += New-MDHeader "Rust packages:" -Level 3
|
||||||
|
$markdown += New-MDList -Style Unordered -Lines @(
|
||||||
|
(Get-BindgenVersion),
|
||||||
|
(Get-CbindgenVersion),
|
||||||
|
(Get-CargoAuditVersion),
|
||||||
|
(Get-CargoOutdatedVersion)
|
||||||
|
)
|
||||||
|
|
||||||
$markdown += New-MDHeader "Browsers and webdrivers" -Level 3
|
$markdown += New-MDHeader "Browsers and webdrivers" -Level 3
|
||||||
$markdown += New-MDList -Style Unordered -Lines @(
|
$markdown += New-MDList -Style Unordered -Lines @(
|
||||||
(Get-BrowserVersion -Browser "chrome"),
|
(Get-BrowserVersion -Browser "chrome"),
|
||||||
|
|||||||
Reference in New Issue
Block a user