Skip to content

Enable Gradle Configuration Cache on GitHub Actions#923

Merged
MGaetan89 merged 3 commits intomainfrom
support_configuration_cache_quality
Mar 5, 2025
Merged

Enable Gradle Configuration Cache on GitHub Actions#923
MGaetan89 merged 3 commits intomainfrom
support_configuration_cache_quality

Conversation

@MGaetan89
Copy link
Contributor

@MGaetan89 MGaetan89 commented Mar 4, 2025

Pull request

Description

In #899, the cache-encryption-key argument was removed from the gradle/actions/setup-gradle action to avoid using secrets.
However, this secret is optional: if the value is not provided, the cache won't be read or updated.
This means that PRs created from the main repository will take advantage of Gradle's Configuration Cache, while PRs from forks won't.

See the corresponding section of the documentation for more information: https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#saving-configuration-cache-data

Changes made

  • Enable Configuration Cache in the project.
  • Update Dokka tasks to work with Configuration Cache.
  • Update the quality.yml workflow to support Configuration Cache.

Checklist

  • APIs have been properly documented (if relevant).
  • The documentation has been updated (if relevant).
  • New unit tests have been written (if relevant).
  • The demo has been updated (if relevant).

In #899, the `cache-encryption-key` argument was removed from the `gradle/actions/setup-gradle` action to avoid using secrets.
However, this secret is optional: if the value is not provided, the cache won't be read or updated.
This means that PRs created from the main repository will take advantage of Gradle's Configuration Cache, while PRs from forks won't.
@MGaetan89 MGaetan89 self-assigned this Mar 4, 2025
@github-project-automation github-project-automation bot moved this to ✏️ Draft in Pillarbox Mar 4, 2025
@MGaetan89 MGaetan89 moved this from ✏️ Draft to 🚧 In Progress in Pillarbox Mar 4, 2025
@github-actions
Copy link

github-actions bot commented Mar 4, 2025

Code Coverage

Overall Project 51.24% -0.19% 🟢
Files changed 0% 🟢

Module Coverage
Kover Gradle Plugin XML report for :plugins 7.13% -4.03% 🟢
Files
Module File Coverage
Kover Gradle Plugin XML report for :plugins PillarboxAndroidLibraryPublishingPlugin.kt 0% -11.76% 🟢

@MGaetan89 MGaetan89 requested a review from StaehliJ March 4, 2025 10:17
@MGaetan89 MGaetan89 moved this from 🚧 In Progress to 🍿 Code Review in Pillarbox Mar 4, 2025
@MGaetan89 MGaetan89 added this pull request to the merge queue Mar 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 5, 2025
@MGaetan89 MGaetan89 added this pull request to the merge queue Mar 5, 2025
Merged via the queue into main with commit 8a5e8fd Mar 5, 2025
10 checks passed
@MGaetan89 MGaetan89 deleted the support_configuration_cache_quality branch March 5, 2025 14:50
@github-project-automation github-project-automation bot moved this from 🍿 Code Review to ✅ Done in Pillarbox Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants