-
-
Notifications
You must be signed in to change notification settings - Fork 613
improve(CI): Build is faster now #7549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: nextgen
Are you sure you want to change the base?
Conversation
|
by default workflow only allowed to save cache from master/main, so I have change it a bit |
| distribution: 'graalvm' | ||
| distribution: 'temurin' | ||
| java-version: '21' | ||
| cache: 'gradle' |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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
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

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)