Merged
Conversation
- add `cache-installation` input option to use GitHub actions cache to store installation for faster setup
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cache-installationinput option to use GitHub actions cache to store installation for faster setup