Compare commits

...

81 commits

Author SHA1 Message Date
Vadim
c40bcf51f5 increased jvm heap 2025-01-21 19:20:37 +01:00
Vadim
368b143674 fixed inputs naming 2025-01-21 15:50:38 +01:00
Vadim
110bf425ca added build checks to PR checks 2025-01-21 15:38:18 +01:00
Vadim
f9ceb61350 allow to skip release to one of the stores 2025-01-21 12:31:34 +01:00
Vadim
752b231447 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2025-01-21 12:14:58 +01:00
Vadim
9cf8be55fa build apk with latest macos runner 2024-07-28 18:45:31 +02:00
Vadim
3e5e409121 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2024-07-28 18:43:28 +02:00
Vadim
078312c03f reduce integration tests timeout 2024-03-17 19:58:14 +01:00
Vadim
e3306ab3ba fixed integration tests 2024-03-17 18:58:47 +01:00
Vadim
17c454e4c6 delete all artifacts after the run 2024-03-17 17:00:08 +01:00
Vadim
bffa598493 delete ipa after upload 2024-03-17 16:55:01 +01:00
Vadim
e376391529 increased integration tests timeout 2024-03-17 16:43:27 +01:00
Vadim
411ec927a9 fixed integration tests 2024-03-17 15:24:16 +01:00
Vadim
8e03d3e400 disable pre-release integration tests by default 2024-03-17 13:23:10 +01:00
Vadim
a01924ab19 typo 2024-03-17 10:19:57 +01:00
Vadim
667f95662e reverted temporary settings 2024-03-17 10:18:07 +01:00
Vadim
2e6495d2db auth with username + password 2024-03-17 09:44:55 +01:00
Vadim
4874dd3368 Update create_release.yml 2024-03-16 23:03:51 +01:00
Vadim
be456a9a8f decode to repo 2024-03-16 21:10:15 +01:00
Vadim
7870138bfd switched to ubuntu for upload 2024-03-16 20:37:57 +01:00
Vadim
58565162eb try manual ipa upload 2024-03-16 20:09:40 +01:00
Vadim
ba0ed69d18 removed flavor from ipa artefact name 2024-03-16 18:12:00 +01:00
Vadim
4c46cc444c try to force ipa upload 2024-03-16 17:43:10 +01:00
Vadim
b61ed93a88 typo 2024-03-16 11:30:24 +01:00
Vadim
1dbcf27cf9 test ipa upload 2024-03-16 11:29:07 +01:00
Vadim
2fb3bdb970 upload ipa to app store 2024-03-16 11:27:46 +01:00
Vadim
257403455c increment build number for ios 2024-03-16 11:27:36 +01:00
Vadim
7fa781f4ca enabled releases 2024-03-15 08:34:19 +01:00
Vadim
f05be2ff39 fixed android folders... 2024-03-14 21:47:47 +01:00
Vadim
d98b2a62ff added option to skip integration tests 2024-03-14 20:54:56 +01:00
Vadim
846a2b2254 enabled integration tests 2024-03-14 20:41:13 +01:00
Vadim
e701d65c4b fixed android keystore path 2024-03-14 20:36:28 +01:00
Vadim
5a8eee10a4 simplified release workflow tree 2024-03-14 20:36:02 +01:00
Vadim
aad833b266 fixed invalid workflow 2024-03-14 20:32:31 +01:00
Vadim
1674d7192e separated android and ios builds 2024-03-14 20:29:36 +01:00
Vadim
14ba91edba style 2024-03-14 20:13:41 +01:00
Vadim
fb94f88401 Restore firebase_app_id_file.json 2024-03-14 20:12:59 +01:00
Vadim
60343d3974 Restore GoogleService-Info.plist 2024-03-14 19:39:08 +01:00
Vadim
ef1a28c1e7 incremented macos runner version 2024-03-14 19:02:38 +01:00
Vadim
e56a8d2500 checkout actions 2024-03-14 17:17:00 +01:00
Vadim
1e84f0dffa typo 2024-03-14 17:15:46 +01:00
Vadim
6ee8e21693 temporary skip tests 2024-03-14 17:14:38 +01:00
Vadim
a690ccfc26 [ios] use distribution profile for release builds 2024-03-14 16:00:15 +01:00
Vadim
ff36f37faa temporeraly skip release jobs 2024-03-14 15:54:34 +01:00
Vadim
682658a283 reuse Build iOS workflow 2024-03-14 15:19:15 +01:00
Vadim
6f0efe4b39 added stage backend option 2024-03-14 15:15:08 +01:00
Vadim
4ed3d4efb9 reuse Build Android workflow 2024-03-14 15:10:18 +01:00
Vadim
f314102c4b run integration tests before build 2024-03-14 15:09:21 +01:00
Vadim
ba9d011fbe Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2024-03-14 15:08:43 +01:00
Vadim
c852af2855 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2024-02-21 13:30:10 +01:00
Vadim
973e8d0426 check PR number 2023-09-20 11:53:30 +02:00
Vadim
8f491de27b depend on step conclusion 2023-09-20 11:47:40 +02:00
Vadim
4493685903 updated stub script to work with tags 2023-09-20 11:40:36 +02:00
Vadim
a46bd98329 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2023-09-20 11:37:25 +02:00
Vadim
7b84225f65 stub 2023-09-02 12:29:38 +02:00
Vadim
0b9b72011e fixed iap repo 2023-09-02 12:25:51 +02:00
Vadim
a0d09abcc1 Update increment_build_number.sh 2023-09-02 12:20:12 +02:00
Vadim
5e16dca13a increment build number by script 2023-09-02 12:18:01 +02:00
Vadim
dfb5b55bb6 checkout first 2023-09-02 11:50:48 +02:00
Vadim
3b8a79e25e added comment to stub_iap.sh 2023-09-02 11:50:11 +02:00
Vadim
c2aa7d714b removed working dir 2023-09-02 11:49:01 +02:00
Vadim
8fff0d259f typo 2023-09-02 11:47:03 +02:00
Vadim
5c09ec77d0 typo 2023-09-02 11:44:09 +02:00
Vadim
4248b6d897 typo 2023-09-02 11:40:17 +02:00
Vadim
deedafa236 try using script for iap stub 2023-09-02 11:39:48 +02:00
Vadim
f96572030d Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2023-09-02 11:36:41 +02:00
Vadim
f8a40af36a renamed other flows 2023-08-05 20:52:57 +02:00
Vadim
515bfcb2da Replaced "Build ..." flow with "Create release" 2023-08-05 20:49:27 +02:00
Vadim
be98e8cf9e Delete no longer used artifacts 2023-08-05 15:41:53 +02:00
Vadim
283bba6ec2 More descriptive run name 2023-08-05 15:33:00 +02:00
Vadim
a7a8fe2a2e Extract merged native libraries 2023-08-04 13:18:10 +02:00
Vadim
2712df4856 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into cd 2023-08-04 13:17:55 +02:00
Vadim
d8e07bc3c3 Update ci.yml 2023-07-25 17:30:38 +02:00
Vadim
e33db3a600 Build -> Development 2023-07-25 17:29:38 +02:00
Vadim
11aed522a1 Added readable name to ci workflow 2023-07-25 17:26:24 +02:00
Vadim
eed3da320f Update .gitignore 2023-07-25 17:24:04 +02:00
Vadim
fa6bcb3740 Removed rm 2023-07-25 17:20:20 +02:00
Vadim
52d88a4e58 Fixed rm 2023-07-25 17:18:19 +02:00
Vadim
c69f196e1c Added stub DefaultFirebaseOptions 2023-07-25 17:14:51 +02:00
Vadim
6aad6050fc Set exact Flutter version for workflows 2023-07-25 17:09:28 +02:00
Vadim
b6473d10c5 Update README.md 2023-07-25 17:09:03 +02:00
3 changed files with 75 additions and 6 deletions

View file

@ -27,6 +27,16 @@ on:
required: true
type: boolean
default: true
deploy-ios:
description: "Publish to App Store"
required: true
type: boolean
default: true
deploy-android:
description: "Publish to Google Play"
required: true
type: boolean
default: true
release-track:
description: "Release track"
type: choice
@ -67,7 +77,7 @@ jobs:
build-android:
name: Build Android
needs: [generate-release-notes]
if: ${{ always() && !failure() && !cancelled() }}
if: ${{ always() && !failure() && !cancelled() && inputs.deploy-android }}
strategy:
matrix:
binary-type: [apk, appbundle]
@ -82,7 +92,7 @@ jobs:
build-ios:
name: Build iOS
needs: [generate-release-notes]
if: ${{ always() && !failure() && !cancelled() }}
if: ${{ always() && !failure() && !cancelled() && inputs.deploy-ios }}
uses: ./.github/workflows/build_ipa.yml
secrets: inherit
with:
@ -92,7 +102,7 @@ jobs:
create-github-release:
name: Create Github release
needs: [build-android, build-ios]
if: ${{ always() && !failure() && !cancelled() }}
if: ${{ always() && !cancelled() && inputs.deploy-android}}
runs-on: ubuntu-latest
permissions:
contents: write
@ -143,7 +153,7 @@ jobs:
create-google-play-release:
name: Create Google Play release
needs: [build-android, build-ios]
if: ${{ always() && !failure() && !cancelled() }}
if: ${{ always() && !failure() && !cancelled() && inputs.deploy-android }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -195,7 +205,7 @@ jobs:
upload-to-app-store:
name: Upload to App Store
needs: [build-android, build-ios]
if: ${{ always() && !failure() && !cancelled() }}
if: ${{ always() && !failure() && !cancelled() && inputs.deploy-ios }}
runs-on: macos-13
steps:
- uses: actions/checkout@v3

View file

@ -64,3 +64,62 @@ jobs:
bash ./.github/scripts/stub_iap.sh
flutter pub get
flutter analyze lib --fatal-infos
platform-changes:
name: Checks for platform changes
runs-on: ubuntu-latest
outputs:
android-changed: ${{ steps.platform-changes.outputs.android-changed }}
ios-changed: ${{ steps.platform-changes.outputs.ios-changed }}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- id: platform-changes
uses: dorny/paths-filter@v2
with:
filters: |
android-changed:
- 'android/**'
- 'pubspec.yaml'
ios-changed:
- 'ios/**'
- 'pubspec.yaml'
build-android:
name: Build Android
needs: platform-changes
if: needs.platform-changes.outputs.android-changed == 'true'
uses: ./.github/workflows/build_apk.yml
secrets: inherit
with:
binary-type: apk
flavor: prod
stage-backend: false
version: "1.0.0"
build-ios:
name: Build iOS
needs: platform-changes
if: needs.platform-changes.outputs.ios-changed == 'true'
uses: ./.github/workflows/build_ipa.yml
secrets: inherit
with:
stage-backend: false
version: "1.0.0"
cleanup:
name: Cleanup
if: ${{ always() }}
needs: [build-android, build-ios]
runs-on: ubuntu-latest
steps:
- name: Delete release artifacts
uses: geekyeggo/delete-artifact@v2
with:
failOnError: false
name: |
m3_lightmeter_apk
m3_lightmeter_appbundle
m3_lightmeter_ipa

View file

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx2048M
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true