Force create data.zip for Android C++ Unit Tests (#2605)

This commit is contained in:
Bart Louwers
2024-07-12 17:49:30 +02:00
committed by GitHub
parent 098cce9d39
commit 31bf973f67
2 changed files with 8 additions and 3 deletions

View File

@@ -184,6 +184,10 @@ jobs:
with:
key: ${{ github.job }}
- name: Create data.zip in assets directory
run: zip -r test/android/app/src/main/assets/data.zip -@ < test/android/app/src/main/assets/to_zip.txt
working-directory: .
- name: Build C++ Unit Tests App
run: |
./gradlew assembleDebug assembleAndroidTest

View File

@@ -29,8 +29,9 @@ jobs:
appFile: "MapLibreAndroidTestApp-drawable-release.apk",
name: "Android Benchmark",
testFilter: "org.maplibre.android.benchmark.Benchmark",
# top devices, query with `aws list-device-pools --arn <project_arn>`
devicePool: "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-b33d66efa1f5",
# Google Pixel 7 Pro
# query with `aws list-device-pools --arn <project_arn>`
devicePool: "arn:aws:devicefarm:us-west-2:373521797162:devicepool:20687d72-0e46-403e-8f03-0941850665bc/9692fe7f-86a9-4ecc-908f-175600968564",
# benchmark-android.yaml
# see https://github.com/maplibre/ci-runners/tree/main/aws-device-farm/custom-test-envs
testSpecArn: "arn:aws:devicefarm:us-west-2:373521797162:upload:20687d72-0e46-403e-8f03-0941850665bc/14862afb-cf88-44aa-9f1e-5131cbb22f01"
@@ -159,7 +160,7 @@ jobs:
node scripts/aws-device-farm/log-test-spec-output.mjs ${{ steps.aws_device_farm_run.outputs.runArn }}
- name: Generate another token (previous one could have expired)
if: always() && env.run_device_test == 'true'
if: always()
id: generate_token_2
uses: tibdex/github-app-token@v2
with: