build ios

This commit is contained in:
Kyle Spearrin 2020-06-09 10:47:09 -04:00
parent a05e037308
commit 0e41945a8a
3 changed files with 28 additions and 2 deletions

14
.github/scripts/ios/build.ps1 vendored Normal file
View file

@ -0,0 +1,14 @@
param (
[Parameter(Mandatory=$true)]
[string] $configuration,
[string] $platform = "iPhone"
)
$rootPath = $env:GITHUB_WORKSPACE;
$iosPath = $($rootPath + "\src\iOS\iOS.csproj");
Write-Output "########################################"
Write-Output "##### Build $configuration Configuration for $platform Platform"
Write-Output "########################################"
msbuild "$($iosPath)" "/p:Platform=$platform" "/p:Configuration=$configuration"

View file

@ -0,0 +1,4 @@
$rootPath = $env:GITHUB_WORKSPACE;
$decryptSecretPath = $($rootPath + ".\.github\scripts\decrypt-secret.ps1");

View file

@ -118,8 +118,16 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2
- name: Decrypt secrets
if: github.ref == 'refs/heads/master'
run: ./.github/scripts/ios/decrypt-secrets.ps1
shell: pwsh
env:
DECRYPT_FILE_PASSWORD: ${{ secrets.DECRYPT_FILE_PASSWORD }}
- name: Restore packages
run: nuget restore
- name: Build app
run: msbuild ./src/iOS/iOS.csproj /verbosity:normal /p:Platform=iPhone /p:Configuration=Debug
- name: Build for App Store
run: ./.github/scripts/android/build.ps1 -configuration AppStore -platform iPhone
shell: pwsh