Skip to content

Conversation

@stevenzeck
Copy link
Contributor

@stevenzeck stevenzeck commented Dec 16, 2025

This PR aims to improve the build times in GitHub Actions, as they are taking 20+ minutes now.

  1. Enabled parallel builds of the individual modules.
  2. Removed clean from the task, as it's not needed.
  3. Cache gradle dependencies.
  4. Combine build and test steps.
  5. Remove building any release variants.

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

Weirdly, it seems to be taking more time now 😅 I restarted the build to make sure it used the Gradle cache but it didn't seem to change anything.

@stevenzeck
Copy link
Contributor Author

stevenzeck commented Dec 17, 2025

It won't cache anything until it goes into main or develop, per cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}. But I also changed the workflow steps to combine build and test, and only build the debug variant and not release. Looks much better, and will improve once things are cached.

And I think it ran low on memory with parallelization at 4 GB.

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

Thank you @stevenzeck, this is a nice improvement!

@mickael-menu mickael-menu merged commit 83d0ee7 into readium:develop Dec 17, 2025
4 checks passed
@stevenzeck stevenzeck deleted the ci-build-improvements branch December 17, 2025 18:04
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.

2 participants