fix: mobile ci (#4232)

This commit is contained in:
Lucas.Xu 2023-12-29 11:17:50 +08:00 committed by GitHub
parent 43a3a1e4b2
commit d57b61b213
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 2 deletions

View File

@ -73,6 +73,10 @@ jobs:
ndk-version: "r24"
add-to-path: true
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6.3
- uses: Swatinem/rust-cache@v2
with:
prefix-key: ${{ matrix.os }}
@ -110,4 +114,4 @@ jobs:
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
cargo make --profile development-android appflowy-android-dev
cargo make --profile development-android appflowy-android-dev-ci

View File

@ -74,7 +74,9 @@ android {
}
buildTypes {
release {
signingConfig signingConfigs.release
// use release instead when publishing the application to google play.
// signingConfig signingConfigs.release
signingConfig signingConfigs.debug
}
}

View File

@ -85,6 +85,15 @@ run_task = { name = [
] }
script_runner = "@shell"
[tasks.appflowy-android-dev-ci]
dependencies = ["appflowy-core-dev-android"]
run_task = { name = [
"code_generation",
"set-app-version",
"flutter-build-android",
] }
script_runner = "@shell"
[tasks.appflowy-macos-dev]
dependencies = ["appflowy-core-dev"]
run_task = { name = [
@ -270,6 +279,14 @@ script = ["""
"""]
script_runner = "@shell"
[tasks.flutter-build-android-ci]
script = ["""
cd appflowy_flutter/
flutter pub get
flutter build apk --debug
"""]
script_runner = "@shell"
[tasks.flutter-build.windows]
script = [
"""