Run Android C++ Unit Tests on AWS Device Farm (#2577)

This commit is contained in:
Bart Louwers
2024-07-04 17:14:35 +03:00
committed by GitHub
parent 5d5bd84d95
commit 51e4c777eb
2 changed files with 53 additions and 0 deletions

View File

@@ -155,6 +155,50 @@ jobs:
platform/android/InstrumentationTestApp.apk
platform/android/InstrumentationTests.apk
android-build-cpp-test:
runs-on: ubuntu-24.04
needs:
- pre_job
if: needs.pre_job.outputs.should_skip != 'true'
defaults:
run:
working-directory: test/android
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Get CMake and Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: 3.24.1
ninjaVersion: latest
- uses: hendrikmuhs/ccache-action@v1.2
with:
key: ${{ github.job }}
- name: Build C++ Unit Tests App
run: |
./gradlew assembleDebug assembleAndroidTest
cp app/build/outputs/apk/debug/app-debug.apk CppUnitTestsApp.apk
cp app/build/outputs/apk/androidTest/release/app-release-androidTest.apk CppUnitTests.apk
- name: Store C++ Unit Tests .apk files
uses: actions/upload-artifact@v4
with:
name: android-cpp-tests
if-no-files-found: error
path: |
./test/android/CppUnitTestsApp.apk
./test/android/CppUnitTests.apk
android-build-render-test:
runs-on: ubuntu-latest
needs:

View File

@@ -43,6 +43,15 @@ jobs:
# Google Pixel 7 Pro
devicePool: "arn:aws:devicefarm:us-west-2:373521797162:devicepool:20687d72-0e46-403e-8f03-0941850665bc/9692fe7f-86a9-4ecc-908f-175600968564",
testSpecArn: "arn:aws:devicefarm:us-west-2:373521797162:upload:20687d72-0e46-403e-8f03-0941850665bc/09e0738e-c91e-4c5f-81e6-06a06cc340d8"
},
{
artifactName: android-cpp-tests,
testFile: CppUnitTests.apk,
appFile: CppUnitTestsApp.apk,
name: "Android C++ Unit Tests",
# Google Pixel 7 Pro
devicePool: "arn:aws:devicefarm:us-west-2:373521797162:devicepool:20687d72-0e46-403e-8f03-0941850665bc/9692fe7f-86a9-4ecc-908f-175600968564",
testSpecArn: "arn:aws:devicefarm:us-west-2:373521797162:upload:20687d72-0e46-403e-8f03-0941850665bc/09e0738e-c91e-4c5f-81e6-06a06cc340d8"
}
]
runs-on: ubuntu-latest