Skip to content

Commit

Permalink
Build and upload Android test APKs
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Aug 17, 2023
1 parent 8d92e1b commit 6355690
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/app-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
run: |
make flutter/prepare && \
make flutter/test/unit
- name: Build Android app
- name: Build Android release APK
env:
BAZEL_OUTPUT_ROOT_ARG: "--output_user_root=/tmp/bazel_output"
BAZEL_CACHE_ARG: "--disk_cache=/tmp/bazel_cache"
Expand All @@ -104,10 +104,33 @@ jobs:
WITH_APPLE: 0
run: |
make flutter/android/release
- name: Archive Android APK
- name: Archive Android release APK
uses: actions/upload-artifact@v3
with:
name: android-apks-${{ github.run_number }}
path: output/android-apks/*.apk
retention-days: 30
if-no-files-found: error
- name: Build Android test APK
env:
BAZEL_OUTPUT_ROOT_ARG: "--output_user_root=/tmp/bazel_output"
BAZEL_CACHE_ARG: "--disk_cache=/tmp/bazel_cache"
OFFICIAL_BUILD: false
FLUTTER_BUILD_NUMBER: ${{ github.run_number }}
WITH_TFLITE: 1
WITH_PIXEL: 1
WITH_MEDIATEK: 1
WITH_QTI: 1
WITH_SAMSUNG: 1
WITH_APPLE: 0
run: |
make flutter/android/apk flutter/android/test-apk
- name: Upload Android test APK
env:
AWS_ACCESS_KEY_ID: ${{ secrets.MLPERF_ARM_AWS_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.MLPERF_ARM_AWS_KEY }}
run: |
aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \
cp --quiet output/android-apks/test-main.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/ && \
aws s3 --endpoint-url=https://s3.us-east-1.lyvecloud.seagate.com \
cp --quiet output/android-apks/test-helper.apk s3://mlcommons-mobile-mlperf-arm/builds/${{ github.run_number }}/

0 comments on commit 6355690

Please sign in to comment.