mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Merge pull request #6416 from al-cheb/win_rust_test_add_bindgen
[Windows] Add cbindgen and bindgen pester test
This commit is contained in:
@@ -24,7 +24,7 @@ rustup target add i686-pc-windows-msvc
|
|||||||
|
|
||||||
# Install common tools
|
# Install common tools
|
||||||
rustup component add rustfmt clippy
|
rustup component add rustfmt clippy
|
||||||
cargo install --locked bindgen cbindgen cargo-audit cargo-outdated
|
cargo install --locked bindgen-cli cbindgen cargo-audit cargo-outdated
|
||||||
|
|
||||||
# Cleanup Cargo crates cache
|
# Cleanup Cargo crates cache
|
||||||
Remove-Item "${env:CARGO_HOME}\registry\*" -Recurse -Force
|
Remove-Item "${env:CARGO_HOME}\registry\*" -Recurse -Force
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ Describe "Rust" {
|
|||||||
$rustTools = @(
|
$rustTools = @(
|
||||||
@{ToolName = "rustup"; binPath = "C:\Users\Default\.cargo\bin\rustup.exe"}
|
@{ToolName = "rustup"; binPath = "C:\Users\Default\.cargo\bin\rustup.exe"}
|
||||||
@{ToolName = "rustc"; binPath = "C:\Users\Default\.cargo\bin\rustc.exe"}
|
@{ToolName = "rustc"; binPath = "C:\Users\Default\.cargo\bin\rustc.exe"}
|
||||||
|
@{ToolName = "bindgen.exe"; binPath = "C:\Users\Default\.cargo\bin\bindgen.exe"}
|
||||||
|
@{ToolName = "cbindgen.exe"; binPath = "C:\Users\Default\.cargo\bin\cbindgen.exe"}
|
||||||
@{ToolName = "cargo"; binPath = "C:\Users\Default\.cargo\bin\cargo.exe"}
|
@{ToolName = "cargo"; binPath = "C:\Users\Default\.cargo\bin\cargo.exe"}
|
||||||
@{ToolName = "cargo audit"; binPath = "C:\Users\Default\.cargo\bin\cargo-audit.exe"}
|
@{ToolName = "cargo audit"; binPath = "C:\Users\Default\.cargo\bin\cargo-audit.exe"}
|
||||||
@{ToolName = "cargo outdated"; binPath = "C:\Users\Default\.cargo\bin\cargo-outdated.exe"}
|
@{ToolName = "cargo outdated"; binPath = "C:\Users\Default\.cargo\bin\cargo-outdated.exe"}
|
||||||
|
|||||||
Reference in New Issue
Block a user