-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (63 loc) · 2.13 KB
/
android_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Android build
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
JAVA_VERSION: 21
jobs:
BuildAndTest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
if: ${{ matrix.os != 'self-hosted' }}
- uses: gradle/actions/setup-gradle@v4
- run: ./gradlew ciBuildAndTest --stacktrace
- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@v2
Device:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
managed-virtual-device: [ 27, 28, 29, 30, 31, 32, 33, 34 ]
experimental: [ false ]
os: [ ubuntu-latest ]
include:
- managed-virtual-device: 35
experimental: true
os: ubuntu-latest
- managed-virtual-device: 35
experimental: true
os: macos-latest
steps:
- uses: actions/checkout@v4
- name: Enable KVM group perms
if: contains(matrix.os, 'ubuntu')
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
if: ${{ matrix.os != 'self-hosted' }}
- uses: gradle/actions/setup-gradle@v4
- run: ./gradlew ciSdkManagerLicenses --stacktrace
- run: ./gradlew managedVirtualDevice${{ matrix.managed-virtual-device }}DebugAndroidTest
-Pandroid.testInstrumentationRunnerArguments.class=siarhei.luskanau.managed.virtual.device.ExampleInstrumentedTest
-Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect
--stacktrace