Skip to content

Conversation

@StephenHodgson
Copy link
Member

  • add cache-installation input option to use GitHub actions cache to store installation for faster setup

- add `cache-installation` input option to use GitHub actions cache to store installation for faster setup
Copilot AI review requested due to automatic review settings December 21, 2025 15:18
@StephenHodgson StephenHodgson requested a review from a team as a code owner December 21, 2025 15:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds caching functionality to the Unity setup action to speed up workflow runs by caching Unity Editor installations. The implementation introduces a new cache-installation input option that leverages GitHub Actions cache to store and restore Unity installations between workflow runs.

Key changes:

  • Restructured the main workflow to support setup and post-execution phases for cache save operations
  • Added cache key generation based on platform, Unity versions, and modules
  • Integrated cache restore during setup and cache save during post-execution cleanup

Reviewed changes

Copilot reviewed 7 out of 11 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
src/index.ts Restructured main logic to support setup/post phases, added cache key generation, cache restore/save operations, and installation path validation
action.yml Added cache-installation input parameter and configured post-execution hook
package.json Bumped version to 2.3.0 and updated dependencies (@rage-against-the-pixel/unity-cli to 1.8.1, @types/node to 22.19.3)
package-lock.json Updated lock file to reflect dependency version changes
README.md Documented the new cache-installation input option with usage note
.github/workflows/validate.yml Updated actions/checkout to v6
.github/workflows/update-release-tags.yml Updated actions/checkout to v6
.github/workflows/build.yml Updated actions/checkout to v6, updated free-disk-space action version, repositioned runs-on, removed top-level permissions, and fixed trailing whitespace
dist/sourcemap-register.js Removed entire file (build artifact)
dist/licenses.txt Removed entire file (build artifact)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@StephenHodgson StephenHodgson merged commit ab62682 into main Dec 21, 2025
19 of 25 checks passed
@StephenHodgson StephenHodgson deleted the dev branch December 21, 2025 15:36
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