Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Repository files navigation

unity-setup

Important

The action is no longer maintained and has been moved to buildalon/unity-setup

An atomic GitHub action to download and install the Unity Editor for runners.

  • If a valid installation is found, then installation is skipped.
  • If a module is missing for a valid build target, then the module is installed.
  • Outputs:
    • UNITY_EDITOR_PATH The path to the Unity Editor Installation.
    • UNITY_PROJECT PATH The path to the Unity Project.
    • UNITY_EDITOR_VERSION The version of the Unity Editor that was installed.

Part of the Mixed Reality Toolkit (XRTK) open source project.

This action does not require the use of XRTK in your Unity project.

Related Github Actions

How to use

jobs:
setup-unity:
strategy:
runs-on: ${{ matrix.os }}strategy:
matrix:
include:
- os: ubuntu-latestbuild-targets: 'StandaloneLinux64 Android iOS'
- os: windows-latestbuild-targets: 'StandaloneWindows64 Android iOS'
- os: macos-latestbuild-targets: 'StandaloneOSX Android iOS'steps:
- uses: actions/checkout@v4
- id: unity-setupuses: xrtk/unity-setup@v7with:
build-targets: ${{ matrix.build-targets }} # Optional, specify the build targets to installversion-file-path: 'ProjectSettings/ProjectVersion.txt'# Optional, specify a path to the unity project version text file# architecture: 'arm64' # Optional, specify the architecture to install (x86_64 or arm64)
- run: | echo "${{ env.UNITY_EDITOR_PATH }}" echo "${{ env.UNITY_PROJECT_PATH }}"

About

A script to download and install the Unity Editor for Github Actions

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages