-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.04 KB
/
GradleProfile.yaml
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
name: GradleProfile
on:
workflow_dispatch:
defaults:
run:
working-directory: frontend/compose-app
env:
PROFILER_VERSION: 0.20.0
jobs:
profile:
name: "Profile Build Tasks"
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Install SDKMAN, Gradle Profiler
run: |
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install gradleprofiler 0.12.0
- name: Run Benchmark Scenarios
run: |
gradle-profiler --benchmark ---scenario-file build_profile.scenarios -project-dir . cleanAssembleDemoDebug assembleDemoDebug cleanAssembleDemoRelease assembleDemoRelease
- name: Upload results
if: always()
uses: actions/upload-artifact@v4
with:
name: profile-reports
path: './profile-out'