TP-35161 | benchmark setup in uitron (#122)

This commit is contained in:
Maila Rajanikanth
2023-07-13 19:43:22 +05:30
committed by GitHub
parent a44d39932e
commit 748b0f17ee
9 changed files with 130 additions and 0 deletions

30
.github/workflows/benchmark.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Cron Job
on:
schedule:
- cron: '15 14 * * *'
jobs:
benchmark:
runs-on: [ macOS ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log Build Metadata
run: |
echo "Commit SHA: ${{ github.sha }}"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Connected Devices
run: adb devices
- name: Benchmark
run: ./gradlew :benchmark:connectedCheck || true
- name: Connected Devices
run: adb devices
- name: Benchmark Report
run: |
for folder in benchmark/build/outputs/androidTest-results/connected/*/; do
echo "Device: $folder"
cat "$folder/testlog/test-results.log" || true
grep "android.studio.display.benchmark=UiTronBenchmark_startup" "$folder/testlog/test-results.log" -A 2 || true
done