Skip to content

ci: modernize GitHub Actions workflows and caching - #352

Open
indpriyanshuraj wants to merge 3 commits into
LiteLDev:mainfrom
indpriyanshuraj:chore/workflow-tuning
Open

ci: modernize GitHub Actions workflows and caching#352
indpriyanshuraj wants to merge 3 commits into
LiteLDev:mainfrom
indpriyanshuraj:chore/workflow-tuning

Conversation

@indpriyanshuraj

@indpriyanshuraj indpriyanshuraj commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Update the Android and documentation workflows to GitHub Actions versions compatible with the current runner runtime, and remove the deprecation warnings from CI.

Changes

  • Updated workflow actions to current major versions.
  • Enabled Gradle caching in the Android workflow.
  • Enabled npm caching in the docs workflow.
  • Simplified the docs job by using a default working directory.

Note

  • The build logic are kept unchanged.

Updated Actions

  • actions/checkoutv7
  • actions/setup-javav5
  • actions/setup-nodev7
  • actions/upload-artifactv7
  • actions/upload-pages-artifactv5
  • actions/deploy-pagesv5
  • android-actions/setup-androidv4
  • xmake-io/github-action-setup-xmakev1.2.5
  • softprops/action-gh-releasev3.0.2

This removes the actions/setup-java@v4 deprecation warning.
This also removes the Node.js 20 warnings caused by older pinned workflow actions.

These reduces build time.

Validation

  • Android CI verified successfully.
  • Docs workflow remains functionally unchanged.

android.yml:

- actions/checkout: v4 -> v7

- actions/setup-java: v4 -> v5

- android-actions/setup-android: v3 -> v4.0.1

- xmake-io/github-action-setup-xmake: v1 -> v1.2.5

- actions/upload-artifact: v4.6.2 -> v7.0.1

- softprops/action-gh-release: v2 -> v3.0.2

docs.yml:

- actions/checkout: v4 -> v7

- actions/setup-node: v4 -> v7

- actions/upload-pages-artifact: v4 -> v5

- actions/deploy-pages: v4 -> v5

Signed-off-by: indpriyanshuraj <243560345+indpriyanshuraj@users.noreply.github.com>
Set default working directory for build steps and cache npm dependencies.

Signed-off-by: Priyanshu Raj <243560345+indpriyanshuraj@users.noreply.github.com>
improves build speed and cache handling

Signed-off-by: indpriyanshuraj <243560345+indpriyanshuraj@users.noreply.github.com>
with:
java-version: "21"
distribution: temurin
cache: "gradle"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Add gradle to cache to reduce build time

@indpriyanshuraj indpriyanshuraj left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remove warnings and improve build time

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