Skip to content

GradleProfile

GradleProfile #7

Workflow file for this run

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
run: |
curl -s "https://get.sdkman.io" | bash
source ${{ runner.home }}/.sdkman/bin/sdkman-init.sh
- name: Install gradle-profiler
run: |
sdk install gradleprofiler 0.20.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'