Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Uzlov <[email protected]>
  • Loading branch information
d-uzlov committed Dec 6, 2021
1 parent 91c02cf commit fa02d60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/cloudbuild/flutter-android.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
substitutions:
_IMAGE_NAME: mlperf-mobile-flutter-android
# Building apks with flutter requires a lot of memory.
# Builds on standard machines with 4GB of RAM can unexpectedly hang.
# Also the build is mostly CPU-intensive, so using 8-core machines
# reduces build time up to 3 times.
options:
machineType: 'E2_HIGHCPU_8'

Expand Down
3 changes: 3 additions & 0 deletions flutter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ android: backend-bridge-android backends/tflite-android prepare-flutter
.PHONY: android/apk
android/apk: android
flutter clean
@# take results from build/app/outputs/flutter-apk/app-release.apk
flutter build apk

.PHONY: ci/android/test_apk
ci/android/test_apk: android/apk
@# take results from build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk
cd android && ./gradlew app:assembleAndroidTest
@# take results from build/app/outputs/apk/debug/app-debug.apk
cd android && ./gradlew app:assembleDebug -Ptarget=integration_test/first_test.dart

.PHONY: docker/android/apk
Expand Down

0 comments on commit fa02d60

Please sign in to comment.