mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-12 21:06:46 +00:00
* Create ubuntu-report.yml * Update ubuntu-report.yml * Update ubuntu-report.yml * Update Common.Helpers.psm1 * Update ubuntu-report.yml * Update ubuntu-report.yml * Update SoftwareReport.Generator.ps1 * Update ubuntu-report.yml * Update ubuntu-report.yml * env vars * Implement language and runtime * Add package management section * fix typo * fix typo * add projectManagement and tools * fix some tools * add CLI tools, Java, PHP Tools, Haskell Tools, Rust Tools, Browsers, .NET Core * fix typo * more changes * fix typo * fix typo * fix typo * change templates * fix toolset * Update Ubuntu2004 and 2204 templates * fix cargo * fix tiny nitpicks * Fix AddToolVersionsList * Remove unused methods * Fix contructor
56 lines
1.5 KiB
PowerShell
56 lines
1.5 KiB
PowerShell
function Initialize-RustEnvironment {
|
|
$env:PATH = "/etc/skel/.cargo/bin:/etc/skel/.rustup/bin:$($env:PATH)"
|
|
$env:RUSTUP_HOME = "/etc/skel/.rustup"
|
|
$env:CARGO_HOME = "/etc/skel/.cargo"
|
|
}
|
|
|
|
function Get-RustVersion {
|
|
$rustVersion = $(rustc --version) | Take-OutputPart -Part 1
|
|
return $rustVersion
|
|
}
|
|
|
|
function Get-BindgenVersion {
|
|
$bindgenVersion = $(bindgen --version) | Take-OutputPart -Part 1
|
|
return $bindgenVersion
|
|
}
|
|
|
|
function Get-CargoVersion {
|
|
$cargoVersion = $(cargo --version) | Take-OutputPart -Part 1
|
|
return $cargoVersion
|
|
}
|
|
|
|
function Get-CargoAuditVersion {
|
|
$cargoAuditVersion = $(cargo-audit --version) | Take-OutputPart -Part 1
|
|
return $cargoAuditVersion
|
|
}
|
|
|
|
function Get-CargoOutdatedVersion {
|
|
$cargoOutdatedVersion = cargo outdated --version | Take-OutputPart -Part 1
|
|
return $cargoOutdatedVersion
|
|
}
|
|
|
|
function Get-CargoClippyVersion {
|
|
$cargoClippyVersion = $(cargo-clippy --version) | Take-OutputPart -Part 1
|
|
return $cargoClippyVersion
|
|
}
|
|
|
|
function Get-CbindgenVersion {
|
|
$cbindgenVersion = $(cbindgen --version) | Take-OutputPart -Part 1
|
|
return $cbindgenVersion
|
|
}
|
|
|
|
function Get-RustupVersion {
|
|
$rustupVersion = $(rustup --version) | Take-OutputPart -Part 1
|
|
return $rustupVersion
|
|
}
|
|
|
|
function Get-RustdocVersion {
|
|
$rustdocVersion = $(rustdoc --version) | Take-OutputPart -Part 1
|
|
return $rustdocVersion
|
|
}
|
|
|
|
function Get-RustfmtVersion {
|
|
$rustfmtVersion = $(rustfmt --version) | Take-OutputPart -Part 1 | Take-OutputPart -Part 0 -Delimiter "-"
|
|
return $rustfmtVersion
|
|
}
|