mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
build ios
This commit is contained in:
parent
a05e037308
commit
0e41945a8a
3 changed files with 28 additions and 2 deletions
14
.github/scripts/ios/build.ps1
vendored
Normal file
14
.github/scripts/ios/build.ps1
vendored
Normal 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"
|
4
.github/scripts/ios/decrypt-secrets.ps1
vendored
Normal file
4
.github/scripts/ios/decrypt-secrets.ps1
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
$rootPath = $env:GITHUB_WORKSPACE;
|
||||
|
||||
$decryptSecretPath = $($rootPath + ".\.github\scripts\decrypt-secret.ps1");
|
||||
|
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue