Skip to content

Conversation

harrytmthy
Copy link
Owner

Summary

This PR enables Gradle caching in the SafeBox CI pipeline to reduce build times and improve overall workflow efficiency. It adds a Cache Gradle step in both the build and instrumented-test jobs, caching ~/.gradle/caches and ~/.gradle/wrapper, using the gradle.lockfile hash for precise cache invalidation.

Implementation Details

  • Added actions/cache@v4 before setup-gradle in both CI jobs.
  • Used gradle-${{ runner.os }}-${{ hashFiles('**/gradle.lockfile') }} as the cache key.

Closes #47

@harrytmthy harrytmthy added this to the 1.2.0 milestone Jun 29, 2025
@harrytmthy harrytmthy self-assigned this Jun 29, 2025
@harrytmthy harrytmthy added enhancement New feature or request ci labels Jun 29, 2025
@harrytmthy harrytmthy merged commit 8725451 into main Jun 29, 2025
3 checks passed
@harrytmthy harrytmthy deleted the feat/enable-gradle-caching branch June 29, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Gradle caching in CI to reduce build times
1 participant