-
Notifications
You must be signed in to change notification settings - Fork 2
unity-setup@v2.3.0 #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- add `cache-installation` input option to use GitHub actions cache to store installation for faster setup
There was a problem hiding this 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.
cache-installationinput option to use GitHub actions cache to store installation for faster setup