mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 21:38:26 +08:00
6
images/win/scripts/Installers/Install-Julia.ps1
Normal file
6
images/win/scripts/Installers/Install-Julia.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
## File: Install-Julia.ps1
|
||||
## Desc: Install Julia
|
||||
################################################################################
|
||||
|
||||
choco install julia -y --ia "/D=C:\Julia"
|
||||
25
images/win/scripts/Installers/Validate-Julia.ps1
Normal file
25
images/win/scripts/Installers/Validate-Julia.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
## File: Validate-Julia.ps1
|
||||
## Desc: Validate Julia
|
||||
################################################################################
|
||||
|
||||
# Verify that julia.exe is on the path
|
||||
if(Get-Command -Name '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
|
||||
Reference in New Issue
Block a user