Skip to content

unity-setup@v3.0.0 - #78

Merged
StephenHodgson merged 7 commits into
mainfrom
dev/v3.0.0
Nov 1, 2026
Merged

StephenHodgson merged 7 commits into
mainfrom
dev/v3.0.0

Conversation

@StephenHodgson

@StephenHodgson StephenHodgson commented Oct 24, 2026 •

Copy link
Copy Markdown
Member
  • update unity-cli@v4.1.0
  • install editors with the official unity cli instead of unity hub
  • add unity-cli-version, channels and allow-security-alert inputs
  • add steps.[id].outputs
    • unity-cli-path: The file path to the official unity cli
    • unity-cli-version: The installed official unity cli version
  • replace UNITY_HUB_PATH with UNITY_CLI_PATH
  • remove unity-hub-path output and auto-update-hub and hub-version inputs
  • install linux editor dependencies for cached installations
  • mark transient failures for reruns
  • add v2 upgrade notes to README.md
  • bump deps
  • update build-options validation tests

@StephenHodgson StephenHodgson self-assigned this Oct 24, 2026
Comment thread .github/workflows/build.yml Fixed
Comment thread .github/workflows/validate.yml Fixed
Comment thread src/android-sdk.ts Fixed
Comment thread src/unity-editor.ts Fixed
Comment thread src/unity-version.ts Fixed
- replace @rage-against-the-pixel/unity-cli with Unity's official unity CLI
- add unity-cli-version input, unity-cli-path and unity-cli-version outputs
- remove auto-update-hub and hub-version inputs
- require Unity 6 or newer
- drop the hand-rolled official CLI wrapper, use unity-cli 4.0.0's UnityCli and UnityInstaller
- keep editors older than Unity 6
- fold in the npm_and_yarn bumps
- CI: parallel version groups, monthly legacy editors, Linux apt package cache, rerun marked failures, 45/60 minute timeouts
@StephenHodgson
StephenHodgson marked this pull request as ready for review November 1, 2026 00:07
Copilot AI balanced review requested due to automatic review settings November 1, 2026 00:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Cached Linux editors can fail to launch because required system dependencies are skipped, and transient setup failures lack the annotations needed to trigger retries.

2 open issues
What changed in this PR

Migrates unity-setup v3 from Unity Hub to Unity’s official CLI through unity-cli v4.0.3, updating the action’s interface and validation workflows.

Changes:

  • Replaces Hub installation with CLI-based editor installation and adds CLI version selection and outputs.
  • Updates documentation, dependencies, and bundled license notices.
  • Separates current and legacy editor validation, adds Linux package caching, and introduces marked-failure retries.
File Description
src/​inputs.ts Uses the new installer API and adjusts architecture handling.
src/​index.ts Migrates setup and cache handling to Unity CLI.
README.md Documents v3 usage, inputs, outputs, and environment variables.
package.json Bumps the action to v3 and upgrades unity-cli.
package-lock.json Updates resolved dependencies.
dist/​licenses.txt Refreshes bundled dependency license notices.
action.yml Replaces Hub inputs and outputs with CLI equivalents.
.github/​workflows/​validate.yml Splits current and legacy validation schedules and enables parallel groups.
.github/​workflows/​rerun-validate.yml Triggers retry evaluation after failed validation runs.
.github/​workflows/​rerun-marked-failures.yml Adds annotation-based retry filtering and attempt limits.
.github/​workflows/​build.yml Adds Linux package caching and validates CLI outputs.
.github/​workflows/​build-options.json Focuses routine validation on Unity 6 and newer.
.github/​workflows/​build-options-legacy.json Defines the separate legacy editor matrix.

Review effort: Balanced

Comment thread src/index.ts Resolved
Comment thread .github/workflows/rerun-validate.yml Resolved
@StephenHodgson
StephenHodgson marked this pull request as draft November 1, 2026 00:42
- add channels and allow-security-alert inputs
- test the Unity streams with the shared unity-stream-matrix workflow
- rerun marked failures with retry-failed-jobs@v1
@StephenHodgson
StephenHodgson marked this pull request as ready for review November 1, 2026 11:08
Comment thread .github/workflows/rerun-validate.yml Dismissed
Comment thread .github/workflows/validate.yml Fixed
…tors

- emit unity-cli's retry marker on failures a rerun can clear
- install the Linux editor dependencies when the editor comes from the cache
- bump actions/checkout to v7 in update-release-tags
Comment thread .github/workflows/validate.yml Dismissed
@StephenHodgson
StephenHodgson merged commit 2d3e8a6 into main Nov 1, 2026
@StephenHodgson
StephenHodgson deleted the dev/v3.0.0 branch November 1, 2026 20:20
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.

3 participants