Skip to content

Commit

Permalink
chore: remove device model
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Jan 31, 2024
1 parent 7604229 commit 75d85df
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/mobile_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -123,7 +123,6 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: arm64-v8a
profile: Pixel 6
arch: x86_64
working-directory: frontend/appflowy_flutter
script: flutter test integration_test/runner.dart
2 changes: 1 addition & 1 deletion frontend/scripts/makefile/flutter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ run_task = { name = [
script_runner = "@shell"

[tasks.appflowy-android-dev-ci]
dependencies = ["appflowy-core-dev-android"]
dependencies = ["appflowy-core-dev-android-ci"]
run_task = { name = [
"code_generation",
"flutter-build-android",
Expand Down
25 changes: 24 additions & 1 deletion frontend/scripts/makefile/mobile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,23 @@ run_task = { name = [
"restore-crate-type",
] }

# only use in CI job
[tasks.appflowy-core-dev-android-ci]
category = "Build"
dependencies = ["env_check", "set-app-version"]
run_task = { name = [
"setup-crate-type",
"sdk-build-android-ci",
"post-mobile-android",
"restore-crate-type",
] }

[tasks.sdk-build-android]
dependencies = ["set-app-version"]
private = true
script = [
"""
cd rust-lib/
rustup show
if [ "${BUILD_FLAG}" = "debug" ]; then
echo "🚀 🚀 🚀 Building for debug"
cargo ndk -t arm64-v8a -o ./jniLibs build --features "${FLUTTER_DESKTOP_FEATURES}" --package=dart-ffi
Expand All @@ -68,6 +78,19 @@ script = [
]
script_runner = "@shell"

# only use in CI job
[tasks.sdk-build-android-ci]
dependencies = ["set-app-version"]
private = true
script = [
"""
cd rust-lib/
cargo ndk -t x86_64 -o ./jniLibs build --features "${FLUTTER_DESKTOP_FEATURES}" --package=dart-ffi
cd ../
""",
]
script_runner = "@shell"

[tasks.post-mobile-ios]
private = true
script = [
Expand Down

0 comments on commit 75d85df

Please sign in to comment.