mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
[Windows] Adding Swig (#3509)
This commit is contained in:
8
images/win/scripts/Installers/Install-Swig.ps1
Normal file
8
images/win/scripts/Installers/Install-Swig.ps1
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
################################################################################
|
||||||
|
## File: Install-Swig.ps1
|
||||||
|
## Desc: Install Swig
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
Choco-Install -PackageName swig
|
||||||
|
|
||||||
|
Invoke-PesterTests -TestFile "Tools" -TestName "Swig"
|
||||||
@@ -101,6 +101,7 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
|||||||
(Get-StackVersion),
|
(Get-StackVersion),
|
||||||
(Get-SVNVersion),
|
(Get-SVNVersion),
|
||||||
(Get-VSWhereVersion),
|
(Get-VSWhereVersion),
|
||||||
|
(Get-SwigVersion),
|
||||||
(Get-WinAppDriver),
|
(Get-WinAppDriver),
|
||||||
(Get-ZstdVersion),
|
(Get-ZstdVersion),
|
||||||
(Get-YAMLLintVersion)
|
(Get-YAMLLintVersion)
|
||||||
|
|||||||
@@ -258,3 +258,9 @@ function Get-DacFxVersion {
|
|||||||
$dacfxversion = (./sqlpackage.exe /version)
|
$dacfxversion = (./sqlpackage.exe /version)
|
||||||
return "DacFx $dacfxversion"
|
return "DacFx $dacfxversion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-SwigVersion {
|
||||||
|
(swig -version | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
|
$swigVersion = $Matches.Version
|
||||||
|
return "Swig $swigVersion"
|
||||||
|
}
|
||||||
|
|||||||
@@ -258,3 +258,9 @@ Describe "Pipx" {
|
|||||||
"pipx --version" | Should -ReturnZeroExitCode
|
"pipx --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Swig" {
|
||||||
|
It "Swig" {
|
||||||
|
"swig -version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -253,7 +253,8 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-Swig.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -257,7 +257,8 @@
|
|||||||
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Selenium.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-IEWebDriver.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
"{{ template_dir }}/scripts/Installers/Install-Apache.ps1",
|
||||||
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1"
|
"{{ template_dir }}/scripts/Installers/Install-Nginx.ps1",
|
||||||
|
"{{ template_dir }}/scripts/Installers/Install-Swig.ps1"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user