You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.9 KiB
63 lines
1.9 KiB
name: NightlyBaselineProfiles
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '42 4 * * *'
|
|
|
|
jobs:
|
|
baseline_profiles:
|
|
name: "Generate Baseline Profiles"
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
timeout-minutes: 60
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Enable KVM group perms
|
|
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
|
|
ls /dev/kvm
|
|
|
|
- name: Copy CI gradle.properties
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 17
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
|
|
|
|
- name: Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: Accept licenses
|
|
run: yes | sdkmanager --licenses || true
|
|
|
|
- name: Check build-logic
|
|
run: ./gradlew :build-logic:convention:check
|
|
|
|
- name: Setup GMD
|
|
run: ./gradlew :benchmarks:pixel6Api33Setup
|
|
--info
|
|
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
|
|
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
|
|
|
|
# This generates both baseline and startup profile and adds them into the generated folder
|
|
- name: Generate Baseline Profile
|
|
run: ./gradlew :app:generateReleaseBaselineProfile
|
|
-Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=baselineprofile
|
|
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
|
|
--stacktrace
|