From 1674d7192e775907d26ccbfd1712e3597ebe34f7 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Thu, 14 Mar 2024 20:29:36 +0100 Subject: [PATCH] separated android and ios builds --- .github/workflows/build.yml | 37 --------------------- .github/workflows/create_release.yml | 49 ++++++++++++++++------------ 2 files changed, 28 insertions(+), 58 deletions(-) delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index f464871..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,37 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Build release - -run-name: Build v${{ inputs.version }} - -on: - workflow_call: - inputs: - version: - description: "Version" - required: true - type: string - binary-type: - description: "Binary type" - type: string - required: true - -jobs: - build-android: - uses: ./.github/workflows/build_apk.yml - if: ${{ inputs.binary-type != 'ipa' }} - with: - binary-type: ${{ inputs.binary-type }} - flavor: prod - stage-backend: false - version: ${{ inputs.version }} - - build-ios: - uses: ./.github/workflows/build_ipa.yml - if: ${{ inputs.binary-type == 'ipa' }} - with: - stage-backend: false - version: ${{ inputs.version }} diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index bf9266e..a20b3e8 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -30,20 +30,31 @@ jobs: uses: ./.github/workflows/run_integration_tests.yml secrets: inherit - build: - name: Build ${{ matrix.binary-type != 'ipa' && 'Android' || 'iOS' }} (.${{ matrix.binary-type }}) + build-android: + name: Build Android (.${{ matrix.binary-type }}) #needs: [run-integration-tests] strategy: matrix: - binary-type: [apk, appbundle, ipa] - uses: ./.github/workflows/build.yml + binary-type: [apk, appbundle] + uses: ./.github/workflows/build_apk.yml + secrets: inherit with: binary-type: ${{ matrix.binary-type }} + flavor: prod + stage-backend: false + version: ${{ inputs.version }} + + build-ios: + name: Build iOS (.ipa) + #needs: [run-integration-tests] + uses: ./.github/workflows/build_ipa.yml + secrets: inherit + with: + stage-backend: false version: ${{ inputs.version }} generate-release-notes: name: Generate release notes - needs: [build] runs-on: ubuntu-latest if: false steps: @@ -58,16 +69,14 @@ jobs: name: whatsnew-en-US path: whatsnew-en-US.md - update-version-in-repo: - name: Update repo version - needs: [build] + create-github-release: + name: Create Github release + needs: [build-android, build-ios, generate-release-notes] runs-on: ubuntu-latest if: false + permissions: + contents: write steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Increment build number & replace version number run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }} @@ -85,14 +94,6 @@ jobs: branch: ${{ github.ref_name }} unprotect_reviews: true - create-github-release: - name: Create Github release - needs: [build, generate-release-notes, update-version-in-repo] - runs-on: ubuntu-latest - if: false - permissions: - contents: write - steps: - name: Download apk uses: actions/download-artifact@v3 with: @@ -120,7 +121,7 @@ jobs: create-google-play-release: name: Create Google Play release - needs: [build, generate-release-notes] + needs: [build-android, generate-release-notes] runs-on: ubuntu-latest if: false steps: @@ -188,6 +189,12 @@ jobs: with: name: m3_lightmeter_appbundle + create-app-store-release: + name: Create App Store release + needs: [build-ios, generate-release-notes] + runs-on: macos-13 + if: false + cleanup: name: Cleanup if: ${{ always() }}