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 # separate terms of service, privacy policy, and support
# documentation. # documentation.
name: Build Prod .ipa name: Build iOS
run-name: Build .ipa v${{ inputs.version }}
on: 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: workflow_dispatch:
inputs: inputs:
version:
description: "Version"
required: true
type: string
include-iap:
type: boolean
description: Include IAP package
default: true
stage-backend: stage-backend:
type: boolean type: boolean
description: Use stage backend description: Use stage backend

View file

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