mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
26 lines
731 B
PowerShell
26 lines
731 B
PowerShell
################################################################################
|
|
## File: Validate-Julia.ps1
|
|
## Desc: Validate Julia
|
|
################################################################################
|
|
|
|
# Verify that julia.exe is on the path
|
|
if((Get-Command -Name 'julia') -and (Test-Path -Path 'C:\Julia'))
|
|
{
|
|
Write-Host "$(julia --version) is on the path."
|
|
}
|
|
else
|
|
{
|
|
Write-Host "Julia is not on the path."
|
|
exit 1
|
|
}
|
|
|
|
# Add description of the software to Markdown
|
|
$SoftwareName = "Julia (x64)"
|
|
$juliaVersion = $(julia --version).split() -match "\d+\.\d+\.\d+"
|
|
|
|
$Description = @"
|
|
_Version:_ $juliaVersion<br/>
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|