reuse Build iOS workflow

This commit is contained in:
Vadim 2024-03-14 15:19:15 +01:00
parent 6f0efe4b39
commit 682658a283
2 changed files with 35 additions and 4 deletions

View file

@ -3,11 +3,35 @@
# separate terms of service, privacy policy, and support
# documentation.
name: Build Prod .ipa
name: Build iOS
run-name: Build .ipa v${{ inputs.version }}
on:
workflow_call:
inputs:
version:
description: "Version"
required: true
type: string
include-iap:
type: boolean
description: Include IAP package
default: true
stage-backend:
type: boolean
description: Use stage backend
default: true
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
type: string
include-iap:
type: boolean
description: Include IAP package
default: true
stage-backend:
type: boolean
description: Use stage backend

View file

@ -30,20 +30,27 @@ jobs:
secrets: inherit
build-android:
name: Build Android (${{ matrix.binary-type }})
name: Build ${{ matrix.binary-type != 'ipa' && 'Android' || 'iOS' }} (.${{ matrix.binary-type }})
needs: [run-integration-tests]
runs-on: macos-11
strategy:
matrix:
binary-type: [apk, appbundle]
binary-type: [apk, appbundle, ipa]
steps:
- uses: ./.github/workflows/build_android.yml
- uses: ./.github/workflows/build_apk.yml
if: ${{ matrix.binary-type != 'ipa' }}
with:
binary-type: ${{ matrix.binary-type }}
flavor: prod
stage-backend: false
version: ${{ inputs.version }}
- uses: ./.github/workflows/build_ipa.yml
if: false
with:
stage-backend: false
version: ${{ inputs.version }}
generate-release-notes:
name: Generate release notes
needs: [build-android]