2020-06-09 16:47:09 +02:00
|
|
|
|
param (
|
|
|
|
|
[Parameter(Mandatory=$true)]
|
|
|
|
|
[string] $configuration,
|
|
|
|
|
[string] $platform = "iPhone"
|
|
|
|
|
)
|
|
|
|
|
|
2020-06-10 02:16:03 +02:00
|
|
|
|
#
|
2020-06-09 23:32:53 +02:00
|
|
|
|
security default-keychain -s build.keychain
|
|
|
|
|
security unlock-keychain -p $env:KEYCHAIN_PASSWORD build.keychain
|
2020-06-10 02:32:23 +02:00
|
|
|
|
security set-keychain-settings -lut 1200 build.keychain
|
2020-06-09 23:43:40 +02:00
|
|
|
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $env:KEYCHAIN_PASSWORD build.keychain
|
2020-06-09 23:32:53 +02:00
|
|
|
|
|
2020-06-09 16:47:09 +02:00
|
|
|
|
$rootPath = $env:GITHUB_WORKSPACE;
|
2020-06-09 17:48:11 +02:00
|
|
|
|
$iosPath = $($rootPath + "/src/iOS/iOS.csproj");
|
2020-06-09 16:47:09 +02:00
|
|
|
|
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
Write-Output "##### Build $configuration Configuration for $platform Platform"
|
|
|
|
|
Write-Output "########################################"
|
|
|
|
|
|
|
|
|
|
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"
|