-
Notifications
You must be signed in to change notification settings - Fork 42
57 lines (47 loc) · 1.54 KB
/
baselineprofile.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
name: Android generate baseline profile
on:
workflow_dispatch:
jobs:
baseline:
name: generate-baselineprofile
runs-on: macOS-latest
env:
EMULATOR_API_LEVEL: '30'
EMULATOR_AVD_TARGET: 'aosp_atd'
EMULATOR_AVD_ARCH: 'x86'
steps:
- name: Checkout to git repository
uses: actions/checkout@v4
with:
lfs: 'true'
- name: Check LFS files
uses: actionsdesk/lfs-warning@v3.3
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build benchmark
id: gradle
run: ./gradlew :apps:wallet:instance:main:generateReleaseBaselineProfile
- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ env.EMULATOR_API_LEVEL }}
- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.EMULATOR_API_LEVEL }}
target: ${{ env.EMULATOR_AVD_TARGET }}
arch: ${{ env.EMULATOR_AVD_ARCH }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."