mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
separated android and ios builds
This commit is contained in:
parent
14ba91edba
commit
1674d7192e
2 changed files with 28 additions and 58 deletions
37
.github/workflows/build.yml
vendored
37
.github/workflows/build.yml
vendored
|
@ -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 }}
|
|
49
.github/workflows/create_release.yml
vendored
49
.github/workflows/create_release.yml
vendored
|
@ -30,20 +30,31 @@ jobs:
|
||||||
uses: ./.github/workflows/run_integration_tests.yml
|
uses: ./.github/workflows/run_integration_tests.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build:
|
build-android:
|
||||||
name: Build ${{ matrix.binary-type != 'ipa' && 'Android' || 'iOS' }} (.${{ matrix.binary-type }})
|
name: Build Android (.${{ matrix.binary-type }})
|
||||||
#needs: [run-integration-tests]
|
#needs: [run-integration-tests]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
binary-type: [apk, appbundle, ipa]
|
binary-type: [apk, appbundle]
|
||||||
uses: ./.github/workflows/build.yml
|
uses: ./.github/workflows/build_apk.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
binary-type: ${{ matrix.binary-type }}
|
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 }}
|
version: ${{ inputs.version }}
|
||||||
|
|
||||||
generate-release-notes:
|
generate-release-notes:
|
||||||
name: Generate release notes
|
name: Generate release notes
|
||||||
needs: [build]
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: false
|
if: false
|
||||||
steps:
|
steps:
|
||||||
|
@ -58,16 +69,14 @@ jobs:
|
||||||
name: whatsnew-en-US
|
name: whatsnew-en-US
|
||||||
path: whatsnew-en-US.md
|
path: whatsnew-en-US.md
|
||||||
|
|
||||||
update-version-in-repo:
|
create-github-release:
|
||||||
name: Update repo version
|
name: Create Github release
|
||||||
needs: [build]
|
needs: [build-android, build-ios, generate-release-notes]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: false
|
if: false
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Increment build number & replace version number
|
- name: Increment build number & replace version number
|
||||||
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
|
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
|
@ -85,14 +94,6 @@ jobs:
|
||||||
branch: ${{ github.ref_name }}
|
branch: ${{ github.ref_name }}
|
||||||
unprotect_reviews: true
|
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
|
- name: Download apk
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -120,7 +121,7 @@ jobs:
|
||||||
|
|
||||||
create-google-play-release:
|
create-google-play-release:
|
||||||
name: Create Google Play release
|
name: Create Google Play release
|
||||||
needs: [build, generate-release-notes]
|
needs: [build-android, generate-release-notes]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: false
|
if: false
|
||||||
steps:
|
steps:
|
||||||
|
@ -188,6 +189,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_appbundle
|
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:
|
cleanup:
|
||||||
name: Cleanup
|
name: Cleanup
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
|
|
Loading…
Reference in a new issue