Skip to content

Commit 885dae7

Browse files
authored
Merge pull request #762 from SimonMarquis/ci/workflows
Merge `AndroidCIWithGmd.yaml` into `Build.yaml`
2 parents eea28eb + 97a55c9 commit 885dae7

File tree

2 files changed

+40
-49
lines changed

2 files changed

+40
-49
lines changed

.github/workflows/AndroidCIWithGmd.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/Build.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
pull_request:
8+
89
concurrency:
910
group: build-${{ github.ref }}
1011
cancel-in-progress: true
@@ -108,3 +109,42 @@ jobs:
108109
with:
109110
name: test-reports-${{ matrix.api-level }}
110111
path: '**/build/reports/androidTests'
112+
113+
androidTest-GMD:
114+
needs: build
115+
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
116+
timeout-minutes: 55
117+
118+
steps:
119+
- name: Checkout
120+
uses: actions/checkout@v3
121+
122+
- name: Copy CI gradle.properties
123+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
124+
125+
- name: Set up JDK 17
126+
uses: actions/setup-java@v3
127+
with:
128+
distribution: 'zulu'
129+
java-version: 17
130+
131+
- name: Setup Gradle
132+
uses: gradle/gradle-build-action@v2
133+
134+
- name: Setup Android SDK
135+
uses: android-actions/setup-android@v2
136+
137+
- name: Build AndroidTest apps
138+
run: ./gradlew packageDemoDebug packageDemoDebugAndroidTest
139+
140+
- name: Run instrumented tests with GMD
141+
run: ./gradlew cleanManagedDevices --unused-only &&
142+
./gradlew ciDemoDebugAndroidTest -Dorg.gradle.workers.max=1
143+
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
144+
145+
- name: Upload test reports
146+
if: success() || failure()
147+
uses: actions/upload-artifact@v3
148+
with:
149+
name: test-reports
150+
path: '**/build/reports/androidTests'

0 commit comments

Comments
 (0)