Skip to content

Commit

Permalink
[macOS] Adding Swig (actions#3510)
Browse files Browse the repository at this point in the history
  • Loading branch information
kassannk committed Jun 7, 2021
1 parent f417049 commit 22b6f42
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
5 changes: 5 additions & 0 deletions images/macos/software-report/SoftwareReport.Common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,11 @@ function Get-PowershellVersion {
return $powershellVersion
}

function Get-SwigVersion {
$swigVersion = Run-Command "swig -version" | Select-Object -First 2 | Take-Part -Part 2
return "Swig $swigVersion"
}

function Build-PackageManagementEnvironmentTable {
return @(
@{
Expand Down
3 changes: 2 additions & 1 deletion images/macos/software-report/SoftwareReport.Generator.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ $toolsList = @(
(Get-AWSSAMCLIVersion),
(Get-AWSSessionManagerCLIVersion),
(Get-AliyunCLIVersion),
(Get-XcodeCommandLineToolsVersion)
(Get-XcodeCommandLineToolsVersion),
(Get-SwigVersion)
)

if( -not $os.IsHighSierra) {
Expand Down
8 changes: 7 additions & 1 deletion images/macos/tests/Common.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,10 @@ Describe "VSMac" {
$vsPath | Should -Exist
$vstoolPath | Should -Exist
}
}
}

Describe "Swig" {
It "Swig" {
"swig -version" | Should -ReturnZeroExitCode
}
}
1 change: 1 addition & 0 deletions images/macos/toolsets/toolset-10.14.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
"perl",
"subversion",
"swiftformat",
"swig",
"xctool",
"zstd"
],
Expand Down
1 change: 1 addition & 0 deletions images/macos/toolsets/toolset-10.15.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@
"perl",
"subversion",
"swiftformat",
"swig",
"xctool",
"zstd"
],
Expand Down
3 changes: 2 additions & 1 deletion images/macos/toolsets/toolset-11.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
"perl",
"subversion",
"swiftformat",
"swig",
"zstd"
],
"cask_packages": [
Expand Down Expand Up @@ -239,4 +240,4 @@
"bundler",
"fastlane"
]
}
}

0 comments on commit 22b6f42

Please sign in to comment.