Skip to content

Conversation

@kroune
Copy link
Contributor

@kroune kroune commented Jan 4, 2026

it is hard to measure exact build time improvements, but I would estimate that is is >30s compared to no cache

https://github.com/kroune/LiquidBounce/actions/runs/20696465844/job/59418635868 - 6m 34s build with a small change in code, no cache used

https://github.com/kroune/LiquidBounce/actions/runs/20696270197/job/59418865451 - pipeline runs on master (nextgen) and saves caches which takes ~46s

https://github.com/kroune/LiquidBounce/actions/runs/20696465844/job/59419093121 - 3m 6s build with a small change, cache used from master (nextgen)

cache used from master (nextgen) on a pr, cache isn't stored
image

cache stored on master (nextgen) (it doesn't use cache because it didn't have any at the time, but after first run there is always cache to use)

image

@kroune
Copy link
Contributor Author

kroune commented Jan 4, 2026

by default workflow only allowed to save cache from master/main, so I have change it a bit

@kroune kroune marked this pull request as draft January 4, 2026 17:03
@kroune kroune marked this pull request as ready for review January 4, 2026 21:26
distribution: 'graalvm'
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this prevented the gradle cache use, setup-java only cached dependencies, but not steps/tasks

uses: actions/setup-java@v4
with:
distribution: 'graalvm'
distribution: 'temurin'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is just faster in general, graalvm is definitely not the fastest one

@MukjepScarlet MukjepScarlet requested a review from 1zun4 January 6, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant